aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2012-04-30 13:29:31 +0200
committerTom Gundersen <teg@jklm.no>2012-04-30 13:29:31 +0200
commitacfbe4b8e05959079a807dcc1df7650946cd0924 (patch)
tree908b7bdcd5ecf14226afb05ad97dcafd850856d7
parent9c4d4c1b9766086e0b8e2464d32d4ac0886627c1 (diff)
downloadinitscripts-acfbe4b8e05959079a807dcc1df7650946cd0924.tar.xz
tmpfiles: use 'root' rather than '0' as the default user/group
This avoids hangs due to '0' not being found and the system attempting to look it up over ldap. Suggested-by: Laurent Rahuel <laurent.rahuel@gmail.com> Signed-off-by: Tom Gundersen <teg@jklm.no>
-rwxr-xr-xarch-tmpfiles4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch-tmpfiles b/arch-tmpfiles
index 8d927de..9355fdc 100755
--- a/arch-tmpfiles
+++ b/arch-tmpfiles
@@ -285,8 +285,8 @@ while read -d '' fragment; do
d|D) line[2]=0755 ;;
esac
fi
- [[ ${line[3]} = '-' ]] && line[3]=0
- [[ ${line[4]} = '-' ]] && line[4]=0
+ [[ ${line[3]} = '-' ]] && line[3]='root'
+ [[ ${line[4]} = '-' ]] && line[4]='root'
"_${line[@]}"
done <"$FILE"