diff options
author | martti <martti@pkgsrc.org> | 2001-11-22 13:20:00 +0000 |
---|---|---|
committer | martti <martti@pkgsrc.org> | 2001-11-22 13:20:00 +0000 |
commit | 8934de529747415204f6fd6eb2b3d7343d4b1a0e (patch) | |
tree | 8ac3aae68e118a54b0f4654e4d882d17bf9e5157 | |
parent | 69e6dd5a6fdb84704ab481a0b10e2330b8a38cae (diff) | |
download | pkgsrc-8934de529747415204f6fd6eb2b3d7343d4b1a0e.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...
-rw-r--r-- | sysutils/etcupdate/Makefile | 4 | ||||
-rwxr-xr-x | sysutils/etcupdate/files/etcupdate | 4 |
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 |