=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mail/quit.c,v retrieving revision 1.18 retrieving revision 1.19 diff -c -r1.18 -r1.19 *** src/usr.bin/mail/quit.c 2006/02/01 19:01:35 1.18 --- src/usr.bin/mail/quit.c 2007/09/10 14:29:53 1.19 *************** *** 1,4 **** ! /* $OpenBSD: quit.c,v 1.18 2006/02/01 19:01:35 otto Exp $ */ /* $NetBSD: quit.c,v 1.6 1996/12/28 07:11:07 tls Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: quit.c,v 1.19 2007/09/10 14:29:53 tobias Exp $ */ /* $NetBSD: quit.c,v 1.6 1996/12/28 07:11:07 tls Exp $ */ /* *************** *** 34,40 **** #if 0 static const char sccsid[] = "@(#)quit.c 8.2 (Berkeley) 4/28/95"; #else ! static const char rcsid[] = "$OpenBSD: quit.c,v 1.18 2006/02/01 19:01:35 otto Exp $"; #endif #endif /* not lint */ --- 34,40 ---- #if 0 static const char sccsid[] = "@(#)quit.c 8.2 (Berkeley) 4/28/95"; #else ! static const char rcsid[] = "$OpenBSD: quit.c,v 1.19 2007/09/10 14:29:53 tobias Exp $"; #endif #endif /* not lint */ *************** *** 122,128 **** (rbuf = Fdopen(fd, "w")) == NULL) goto newmail; #ifdef APPEND ! fseek(fbuf, (long)mailsize, 0); while ((c = getc(fbuf)) != EOF) (void)putc(c, rbuf); #else --- 122,128 ---- (rbuf = Fdopen(fd, "w")) == NULL) goto newmail; #ifdef APPEND ! fseek(fbuf, (long)mailsize, SEEK_SET); while ((c = getc(fbuf)) != EOF) (void)putc(c, rbuf); #else *************** *** 457,463 **** relsesigs(); return(-1); } ! fseek(ibuf, (long)mailsize, 0); while ((c = getc(ibuf)) != EOF) (void)putc(c, obuf); (void)Fclose(ibuf); --- 457,463 ---- relsesigs(); return(-1); } ! fseek(ibuf, (long)mailsize, SEEK_SET); while ((c = getc(ibuf)) != EOF) (void)putc(c, obuf); (void)Fclose(ibuf);