Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/pax Actually exit with error if we cannot open("."), mak...
details: https://anonhg.NetBSD.org/src/rev/8b9cc85cacaf
branches: trunk
changeset: 588182:8b9cc85cacaf
user: dsl <dsl%NetBSD.org@localhost>
date: Sat Feb 11 10:35:19 2006 +0000
description:
Actually exit with error if we cannot open("."), make it more obvious that
we exit with error on signals.
diffstat:
bin/pax/pax.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (40 lines):
diff -r db9e2a7a03a4 -r 8b9cc85cacaf bin/pax/pax.c
--- a/bin/pax/pax.c Sat Feb 11 09:33:16 2006 +0000
+++ b/bin/pax/pax.c Sat Feb 11 10:35:19 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pax.c,v 1.37 2005/04/24 01:45:04 christos Exp $ */
+/* $NetBSD: pax.c,v 1.38 2006/02/11 10:35:19 dsl Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -44,7 +44,7 @@
#if 0
static char sccsid[] = "@(#)pax.c 8.2 (Berkeley) 4/18/94";
#else
-__RCSID("$NetBSD: pax.c,v 1.37 2005/04/24 01:45:04 christos Exp $");
+__RCSID("$NetBSD: pax.c,v 1.38 2006/02/11 10:35:19 dsl Exp $");
#endif
#endif /* not lint */
@@ -263,7 +263,7 @@
*/
cwdfd = open(".", O_RDONLY);
if (cwdfd < 0) {
- syswarn(0, errno, "Can't open current working directory.");
+ syswarn(1, errno, "Can't open current working directory.");
return(exit_val);
}
if (updatepath() == -1)
@@ -345,10 +345,10 @@
vflag = vfpart = 1;
#ifdef SIGXCPU
if (which_sig == SIGXCPU)
- tty_warn(0, "CPU time limit reached, cleaning up.");
+ tty_warn(1, "CPU time limit reached, cleaning up.");
else
#endif
- tty_warn(0, "Signal caught, cleaning up.");
+ tty_warn(1, "Signal caught, cleaning up.");
/* delete any open temporary file */
if (xtmp_name)
Home |
Main Index |
Thread Index |
Old Index