mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Preserve unix file attributes on copy http://sourceforge.net/p/webadmin/bugs/4701/
This commit is contained in:
@@ -205,6 +205,11 @@ foreach $s (@run) {
|
||||
else {
|
||||
push(@errs, [ $f, "Copy was incomplete" ]);
|
||||
}
|
||||
|
||||
# Preserve file permissions
|
||||
&remote_foreign_call($s->{'host'}, "webmin",
|
||||
"set_ownership_permissions", $st[4], $st[5],
|
||||
$st[2] & 0777, $dest);
|
||||
}
|
||||
|
||||
# Run the post command on remote
|
||||
|
||||
Reference in New Issue
Block a user