fdopen(ofile) is no longer called "w+", just plain "w"
Showing
2 changed files
with
3 additions
and
1 deletions
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; | ... | ... |
-
Please register or sign in to post a comment