Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/pwd_mkdb Use empty string as default prefix so that...



details:   https://anonhg.NetBSD.org/src/rev/22e3b2ed95e1
branches:  trunk
changeset: 499450:22e3b2ed95e1
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Nov 20 14:09:36 2000 +0000

description:
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 a67d92cb0e43 -r 22e3b2ed95e1 usr.sbin/pwd_mkdb/pwd_mkdb.c
--- a/usr.sbin/pwd_mkdb/pwd_mkdb.c      Mon Nov 20 14:08:12 2000 +0000
+++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c      Mon Nov 20 14:09:36 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pwd_mkdb.c,v 1.20 2000/08/08 12:08:17 ad Exp $ */
+/*     $NetBSD: pwd_mkdb.c,v 1.21 2000/11/20 14:09:36 tron 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.20 2000/08/08 12:08:17 ad Exp $");
+__RCSID("$NetBSD: pwd_mkdb.c,v 1.21 2000/11/20 14:09:36 tron 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