Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/postinstall Fix a call to pwd_mkdb in the case that...



details:   https://anonhg.NetBSD.org/src/rev/636c5c3dff4b
branches:  trunk
changeset: 777538:636c5c3dff4b
user:      apb <apb%NetBSD.org@localhost>
date:      Wed Feb 22 16:27:38 2012 +0000

description:
Fix a call to pwd_mkdb in the case that DEST_DIR is the empty string.

diffstat:

 usr.sbin/postinstall/postinstall |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r eba95698032f -r 636c5c3dff4b usr.sbin/postinstall/postinstall
--- a/usr.sbin/postinstall/postinstall  Wed Feb 22 16:12:34 2012 +0000
+++ b/usr.sbin/postinstall/postinstall  Wed Feb 22 16:27:38 2012 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.132 2012/02/21 12:31:18 nakayama Exp $
+# $NetBSD: postinstall,v 1.133 2012/02/22 16:27:38 apb Exp $
 #
 # Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -1135,7 +1135,7 @@
        if [ "${op}" = "check" ]; then
                msg "Update format of passwd database"
                failed=1
-       elif ! ${PWD_MKDB} -V 1 -d ${DEST_DIR} ${DEST_DIR}/etc/master.passwd; then
+       elif ! ${PWD_MKDB} -V 1 -d ${DEST_DIR:-/} ${DEST_DIR}/etc/master.passwd; then
                msg "Can't update format of passwd database"
                failed=1
        else



Home | Main Index | Thread Index | Old Index