Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/usr.sbin/pwd_mkdb Pull up revision 1.21 (requested by t...
details: https://anonhg.NetBSD.org/src/rev/214adc419fee
branches: netbsd-1-5
changeset: 490605:214adc419fee
user: he <he%NetBSD.org@localhost>
date: Sat Feb 03 20:52:31 2001 +0000
description:
Pull up revision 1.21 (requested by tron):
Use empty string as default prefix so that e.g. ``/etc/spwd.db''
is used instead of ``//etc/spwd.db''.
diffstat:
usr.sbin/pwd_mkdb/pwd_mkdb.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e3823bf71b4d -r 214adc419fee usr.sbin/pwd_mkdb/pwd_mkdb.c
--- a/usr.sbin/pwd_mkdb/pwd_mkdb.c Sat Feb 03 20:49:30 2001 +0000
+++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c Sat Feb 03 20:52:31 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pwd_mkdb.c,v 1.17.4.3 2000/08/09 14:28:30 ad Exp $ */
+/* $NetBSD: pwd_mkdb.c,v 1.17.4.4 2001/02/03 20:52:31 he Exp $ */
/*
* Copyright (c) 1991, 1993, 1994
@@ -41,7 +41,7 @@
Copyright (c) 1991, 1993, 1994\n\
The Regents of the University of California. All rights reserved.\n");
__SCCSID("from: @(#)pwd_mkdb.c 8.5 (Berkeley) 4/20/94");
-__RCSID("$NetBSD: pwd_mkdb.c,v 1.17.4.3 2000/08/09 14:28:30 ad Exp $");
+__RCSID("$NetBSD: pwd_mkdb.c,v 1.17.4.4 2001/02/03 20:52:31 he Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -107,7 +107,7 @@
hasyp = 0;
oldfp = NULL;
- strcpy(prefix, "/");
+ prefix[0] = '\0';
makeold = 0;
while ((ch = getopt(argc, argv, "d:pvBL")) != -1)
Home |
Main Index |
Thread Index |
Old Index