=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ftp/fetch.c,v retrieving revision 1.99 retrieving revision 1.100 diff -c -r1.99 -r1.100 *** src/usr.bin/ftp/fetch.c 2010/06/03 07:50:02 1.99 --- src/usr.bin/ftp/fetch.c 2010/06/29 23:12:33 1.100 *************** *** 1,4 **** ! /* $OpenBSD: fetch.c,v 1.99 2010/06/03 07:50:02 halex Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: fetch.c,v 1.100 2010/06/29 23:12:33 halex Exp $ */ /* $NetBSD: fetch.c,v 1.14 1997/08/18 10:20:20 lukem Exp $ */ /*- *************** *** 259,265 **** } #ifndef SMALL ! if (resume && (strcmp(savefile, "-") == 0)) { warnx("can't append to stdout"); goto cleanup_url_get; } --- 259,265 ---- } #ifndef SMALL ! if (resume && pipeout) { warnx("can't append to stdout"); goto cleanup_url_get; } *************** *** 337,343 **** filesize = st.st_size; /* Open the output file. */ ! if (strcmp(savefile, "-") != 0) { #ifndef SMALL if (resume) out = open(savefile, O_CREAT | O_WRONLY | --- 337,343 ---- filesize = st.st_size; /* Open the output file. */ ! if (!pipeout) { #ifndef SMALL if (resume) out = open(savefile, O_CREAT | O_WRONLY | *************** *** 758,764 **** } /* Open the output file. */ ! if (strcmp(savefile, "-") != 0) { #ifndef SMALL if (resume) out = open(savefile, O_CREAT | O_WRONLY | O_APPEND, --- 758,764 ---- } /* Open the output file. */ ! if (!pipeout) { #ifndef SMALL if (resume) out = open(savefile, O_CREAT | O_WRONLY | O_APPEND,