Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/pax Fix oops in last, chown() failure should be fatal.
details: https://anonhg.NetBSD.org/src/rev/799ba17eea87
branches: trunk
changeset: 540594:799ba17eea87
user: grant <grant%NetBSD.org@localhost>
date: Thu Dec 19 14:23:53 2002 +0000
description:
Fix oops in last, chown() failure should be fatal.
Noted by Charles Hannum.
diffstat:
bin/pax/file_subs.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 8ed9b0ab2389 -r 799ba17eea87 bin/pax/file_subs.c
--- a/bin/pax/file_subs.c Thu Dec 19 14:02:54 2002 +0000
+++ b/bin/pax/file_subs.c Thu Dec 19 14:23:53 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: file_subs.c,v 1.26 2002/12/19 14:02:54 grant Exp $ */
+/* $NetBSD: file_subs.c,v 1.27 2002/12/19 14:23:53 grant Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)file_subs.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: file_subs.c,v 1.26 2002/12/19 14:02:54 grant Exp $");
+__RCSID("$NetBSD: file_subs.c,v 1.27 2002/12/19 14:23:53 grant Exp $");
#endif
#endif /* not lint */
@@ -746,8 +746,9 @@
#endif
{
(void)fflush(listf);
- syswarn(0, errno, "Unable to set file uid/gid of %s",
+ syswarn(1, errno, "Unable to set file uid/gid of %s",
fnm);
+ return(-1);
}
return(0);
}
Home |
Main Index |
Thread Index |
Old Index