* Don't complain about groups with no gid.

svn path=/nixos/trunk/; revision=9757
This commit is contained in:
Eelco Dolstra 2007-11-19 16:56:40 +00:00
parent 524f1fa376
commit 4b1ed0ded2

View File

@ -11,7 +11,7 @@ cat "$2" | while true; do
echo "updating group $name..."
oldIFS="$IFS"; IFS=:; set -- $curEnt; IFS="$oldIFS"
prevGid=$3
if test "$prevGid" != "$gid"; then
if test -n "$gid" -a "$prevGid" != "$gid"; then
groupmod "$name" --gid $gid
fi
fi