summaryrefslogtreecommitdiff
path: root/sysutils/etcupdate
diff options
context:
space:
mode:
authormartti <martti>2001-11-22 13:20:00 +0000
committermartti <martti>2001-11-22 13:20:00 +0000
commit643f673e12cbc928ce502c8f44b42c711395cb8c (patch)
tree8ac3aae68e118a54b0f4654e4d882d17bf9e5157 /sysutils/etcupdate
parent967087909956807a11bb80b3de3e842ebe1af4eb (diff)
downloadpkgsrc-643f673e12cbc928ce502c8f44b42c711395cb8c.tar.gz
Change to the root directory (/) before running mtree to set the directory
permissions. Without this fix mtree was creating new directories in /usr/src/etc which was not so nice...
Diffstat (limited to 'sysutils/etcupdate')
-rw-r--r--sysutils/etcupdate/Makefile4
-rwxr-xr-xsysutils/etcupdate/files/etcupdate4
2 files changed, 4 insertions, 4 deletions
diff --git a/sysutils/etcupdate/Makefile b/sysutils/etcupdate/Makefile
index ad7cafd450a..c2bf006967a 100644
--- a/sysutils/etcupdate/Makefile
+++ b/sysutils/etcupdate/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2001/11/21 09:21:58 martti Exp $
+# $NetBSD: Makefile,v 1.4 2001/11/22 13:20:00 martti Exp $
-DISTNAME= etcupdate-20011121
+DISTNAME= etcupdate-20011122
CATEGORIES= sysutils
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/sysutils/etcupdate/files/etcupdate b/sysutils/etcupdate/files/etcupdate
index a8e9a8593d7..b3de1b5ebca 100755
--- a/sysutils/etcupdate/files/etcupdate
+++ b/sysutils/etcupdate/files/etcupdate
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: etcupdate,v 1.4 2001/11/21 08:45:57 martti Exp $
+# $NetBSD: etcupdate,v 1.5 2001/11/22 13:20:00 martti Exp $
#
# Copyright (c) 2001 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -373,7 +373,7 @@ if [ ! -z "${NEED_MTREE}" ]; then
if yesno "You have created new directories. Run mtree to set" \
"permissions"
then
- mtree -Udef /etc/mtree/NetBSD.dist
+ (cd / && mtree -Udef /etc/mtree/NetBSD.dist)
fi
fi
if [ ! -z "${NEED_MAKEDEV}" ]; then