]> git.cameronkatri.com Git - pw-darwin.git/commitdiff
Add `-h' to the chown command so that symbolic links copied from
authorIan Dowse <iedowse@FreeBSD.org>
Sun, 20 Jan 2002 17:05:07 +0000 (17:05 +0000)
committerIan Dowse <iedowse@FreeBSD.org>
Sun, 20 Jan 2002 17:05:07 +0000 (17:05 +0000)
the skeleton directory are chown'd to the new user.

PR: bin/10601
Submitted by: Adrian Filipi-Martin <adrian2ubergeeks.com@gosub.cstone.net>
MFC after: 1 month

adduser/adduser.perl

index 87a3d8240d82b344d4593bd04b20cd693105866a..defebe0394c56afda5735ed3125ad9f3cbeae942 100644 (file)
@@ -1071,7 +1071,7 @@ sub home_create {
     print "Copy files from $dotdir to $homedir\n" if $verbose;
     system('cp', '-R', $dotdir, $homedir);
     system('chmod', '-R', 'u+wrX,go-w', $homedir);
-    system('chown', '-R', "$name:$group", $homedir);
+    system('chown', '-Rh', "$name:$group", $homedir);
 
     # security
     opendir(D, $homedir);