Commit 4347d2ab 4347d2abe1377d62fc2ad6d384b9bda8928b5fb7 by Sean 'Shaleh' Perry

fdopen(ofile) is no longer called "w+", just plain "w"

1 parent f564df74
1 Sean 'Shaleh' Perry <shaleh@debian.org> Wed, 6 Oct 1999 13:55:42 -0700 1 Sean 'Shaleh' Perry <shaleh@debian.org> Wed, 6 Oct 1999 13:55:42 -0700
2 2
3 * Cleanup some compilation issues 3 * Cleanup some compilation issues
4 * changed "w+" to "w" in called to pop3_mainloop():ofile = fdopen()
5 why was it called with w+? It is only ever used for writing.
4 6
5 Sean 'Shaleh' Perry <shaleh@debian.org> Tue, 5 Oct 1999 23:06:33 -0700 7 Sean 'Shaleh' Perry <shaleh@debian.org> Tue, 5 Oct 1999 23:06:33 -0700
6 8
......
...@@ -182,7 +182,7 @@ pop3_mainloop (int infile, int outfile) ...@@ -182,7 +182,7 @@ pop3_mainloop (int infile, int outfile)
182 char *local_hostname; 182 char *local_hostname;
183 183
184 ifile = infile; 184 ifile = infile;
185 ofile = fdopen (outfile, "w+"); 185 ofile = fdopen (outfile, "w");
186 if (ofile == NULL) 186 if (ofile == NULL)
187 pop3_abquit (ERR_NO_OFILE); 187 pop3_abquit (ERR_NO_OFILE);
188 state = AUTHORIZATION; 188 state = AUTHORIZATION;
......