diff options
author | dancer <dancer> | 2005-11-16 00:15:17 +0000 |
---|---|---|
committer | dancer <dancer> | 2005-11-16 00:15:17 +0000 |
commit | 2fbc1d1939fde958fa19aee14ca5ae11e9d9667b (patch) | |
tree | e1226f4a15b9e4488818cfd68bf188309d9282e3 /pbuilder-buildpackage-funcs | |
parent | 7e743684805f21cc3c31719af5c4b41488017c86 (diff) | |
download | pbuilder-2fbc1d1939fde958fa19aee14ca5ae11e9d9667b.tar pbuilder-2fbc1d1939fde958fa19aee14ca5ae11e9d9667b.tar.gz |
check before editing /etc/shadow
Diffstat (limited to 'pbuilder-buildpackage-funcs')
-rw-r--r-- | pbuilder-buildpackage-funcs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pbuilder-buildpackage-funcs b/pbuilder-buildpackage-funcs index c6cbc59..31f990d 100644 --- a/pbuilder-buildpackage-funcs +++ b/pbuilder-buildpackage-funcs @@ -90,7 +90,7 @@ function createbuilduser () { cowprotect $BUILDPLACE/etc/group echo "$BUILDUSERNAME:*:$BUILDUSERID:" >> $BUILDPLACE/etc/group fi - if ! grep -q ^$BUILDUSERNAME: $BUILDPLACE/etc/shadow; then + if [ -e ! $BUILDPLACE/etc/shadow ] && grep -q ^$BUILDUSERNAME: $BUILDPLACE/etc/shadow; then cowprotect $BUILDPLACE/etc/shadow echo "$BUILDUSERNAME:!:::::::" >> $BUILDPLACE/etc/shadow fi |