summaryrefslogtreecommitdiff
path: root/pinyadmin/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'pinyadmin/sbin')
-rwxr-xr-xpinyadmin/sbin/newuser2
1 files changed, 1 insertions, 1 deletions
diff --git a/pinyadmin/sbin/newuser b/pinyadmin/sbin/newuser
index ef61cd7..22c73ef 100755
--- a/pinyadmin/sbin/newuser
+++ b/pinyadmin/sbin/newuser
@@ -158,7 +158,7 @@ print GITCONFIG <<END;
END
close( GITCONFIG );
-chown( $u->uid, $u->group->gid, $u->home . "/.gitconfig" );
+chown( $u->uid, (getgrnam("users"))[2] , $u->home . "/.gitconfig" );
print "Your user has been created. Try logging in!\n";