summaryrefslogtreecommitdiffstats
path: root/usr.sbin/adduser
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2002-01-20 17:05:07 +0000
committeriedowse <iedowse@FreeBSD.org>2002-01-20 17:05:07 +0000
commitcf51333427023df25ea3e4e5aa94d76d3dc8dc15 (patch)
tree3feb5fd6dd3b6bd4097ca0b01b279c49a021a8d3 /usr.sbin/adduser
parent1c60c1c1700ad91938e79e6690cedf9d650ebb73 (diff)
downloadFreeBSD-src-cf51333427023df25ea3e4e5aa94d76d3dc8dc15.zip
FreeBSD-src-cf51333427023df25ea3e4e5aa94d76d3dc8dc15.tar.gz
Add `-h' to the chown command so that symbolic links copied from
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
Diffstat (limited to 'usr.sbin/adduser')
-rw-r--r--usr.sbin/adduser/adduser.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/adduser/adduser.perl b/usr.sbin/adduser/adduser.perl
index 87a3d82..defebe0 100644
--- a/usr.sbin/adduser/adduser.perl
+++ b/usr.sbin/adduser/adduser.perl
@@ -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);
OpenPOWER on IntegriCloud