Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/pax provide meaningful warning if -N is called with a do...
details: https://anonhg.NetBSD.org/src/rev/2d4abd9fba12
branches: trunk
changeset: 521203:2d4abd9fba12
user: lukem <lukem%NetBSD.org@localhost>
date: Sat Jan 26 02:22:54 2002 +0000
description:
provide meaningful warning if -N is called with a dodgy dbdir
diffstat:
bin/pax/options.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r fc41139d0aec -r 2d4abd9fba12 bin/pax/options.c
--- a/bin/pax/options.c Fri Jan 25 23:40:51 2002 +0000
+++ b/bin/pax/options.c Sat Jan 26 02:22:54 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: options.c,v 1.35 2002/01/24 07:45:33 lukem Exp $ */
+/* $NetBSD: options.c,v 1.36 2002/01/26 02:22:54 lukem Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)options.c 8.2 (Berkeley) 4/18/94";
#else
-__RCSID("$NetBSD: options.c,v 1.35 2002/01/24 07:45:33 lukem Exp $");
+__RCSID("$NetBSD: options.c,v 1.36 2002/01/26 02:22:54 lukem Exp $");
#endif
#endif /* not lint */
@@ -479,8 +479,12 @@
/*
* Use alternative directory for user db lookups.
*/
- if (!setup_getid(optarg))
+ if (!setup_getid(optarg)) {
+ tty_warn(1,
+ "Unable to use user and group databases in `%s'",
+ optarg);
pax_usage();
+ }
break;
case 'O':
/*
Home |
Main Index |
Thread Index |
Old Index