Commit d63fe071 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Add -h option to chown so that symlinks are changed too.

parent eaf31a15
...@@ -110,7 +110,7 @@ if (! defined($this_user)) { ...@@ -110,7 +110,7 @@ if (! defined($this_user)) {
} }
my $this_uid = $this_user->uid(); my $this_uid = $this_user->uid();
if (system("$CHOWN -R $this_uid $pathname")) { if (system("$CHOWN -h -R $this_uid $pathname")) {
die("*** $0:\n". die("*** $0:\n".
" Failed: '$CHOWN -R $this_uid $pathname'\n"); " Failed: '$CHOWN -R $this_uid $pathname'\n");
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment