Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/uudecode fix bug introduced in rev 1.11: freopen 'fn...
details: https://anonhg.NetBSD.org/src/rev/ae54a8e928b5
branches: trunk
changeset: 467329:ae54a8e928b5
user: cgd <cgd%NetBSD.org@localhost>
date: Tue Mar 23 05:55:40 1999 +0000
description:
fix bug introduced in rev 1.11: freopen 'fn' (as before), not 'buf' (as
changed in rev 1.11). The former is the file name on the 'begin' line,
thel atter is the whole 'begin' line. This could never have worked;
it should have been better tested.
Bug pointed out by Andrew Gillham <gillhaa%ghost.whirlpool.com@localhost>.
diffstat:
usr.bin/uudecode/uudecode.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a22e8d41c7a3 -r ae54a8e928b5 usr.bin/uudecode/uudecode.c
--- a/usr.bin/uudecode/uudecode.c Tue Mar 23 05:54:11 1999 +0000
+++ b/usr.bin/uudecode/uudecode.c Tue Mar 23 05:55:40 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uudecode.c,v 1.11 1999/03/18 23:57:11 kleink Exp $ */
+/* $NetBSD: uudecode.c,v 1.12 1999/03/23 05:55:40 cgd Exp $ */
/*-
* Copyright (c) 1983, 1993
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)uudecode.c 8.2 (Berkeley) 4/2/94";
#endif
-__RCSID("$NetBSD: uudecode.c,v 1.11 1999/03/18 23:57:11 kleink Exp $");
+__RCSID("$NetBSD: uudecode.c,v 1.12 1999/03/23 05:55:40 cgd Exp $");
#endif /* not lint */
/*
@@ -171,7 +171,7 @@
}
/* create output file, set mode */
- if (!pflag && (!freopen(buf, "w", stdout) ||
+ if (!pflag && (!freopen(fn, "w", stdout) ||
fchmod(fileno(stdout), mode & 0666))) {
warnx("%s: %s", fn, filename);
return(1);
Home |
Main Index |
Thread Index |
Old Index