Not all systems have the utmp group

This commit is contained in:
Roy Marples 2009-04-18 00:56:48 +00:00
parent 1a2d81751d
commit 9225c6cefb

View File

@ -64,7 +64,8 @@ cleanup_tmp_dir()
mkutmp()
{
: >"$1"
chgrp utmp "$1"
# Not all systems have the utmp group
chgrp utmp "$1" 2>/dev/null
chmod 0664 "$1"
}