diff options
Diffstat (limited to 'mk/install/usergroupfuncs.DragonFly')
-rw-r--r-- | mk/install/usergroupfuncs.DragonFly | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/install/usergroupfuncs.DragonFly b/mk/install/usergroupfuncs.DragonFly index d802aa6467a..3d3ddaae250 100644 --- a/mk/install/usergroupfuncs.DragonFly +++ b/mk/install/usergroupfuncs.DragonFly @@ -1,4 +1,4 @@ -# $NetBSD: usergroupfuncs.DragonFly,v 1.5 2006/04/27 22:44:09 jlam Exp $ +# $NetBSD: usergroupfuncs.DragonFly,v 1.6 2006/04/29 03:49:12 jlam Exp $ # # Platform-specific adduser and addgroup functionality # on top of pw(8). @@ -27,7 +27,7 @@ group_exists() ${RM} -f $_testfile; return 2 elif ${TEST} -z "$_groupid"; then # $_group doesn't exist and $_groupid is not set - return 1 + ${RM} -f $_testfile; return 1 elif ${CHGRP} $_groupid $_testfile >/dev/null 2>&1; then _name=`${LS} -l $_testfile 2>/dev/null | ${AWK} '{ print $4 }'` if ${TEST} "$_name" != "$_groupid"; then @@ -64,7 +64,7 @@ user_exists() ${RM} -f $_testfile; return 2 elif ${TEST} -z "$_userid"; then # $_user doesn't exist and $_user is not set - return 1 + ${RM} -f $_testfile; return 1 elif ${CHOWN} $_userid $_testfile >/dev/null 2>&1; then _name=`${LS} -l $_testfile 2>/dev/null | ${AWK} '{ print $3 }'` if ${TEST} "$_name" != "$_userid"; then |