Added a button to the compressed file extraction dialog to show the contents of a ZIP or tar file, instead of extracting it.
---- Changes since 1.460 ----
Fixed bugs that broke the file manager under the new Webmin API module.
+---- Changes since 1.470 ----
+Fixed a bug that prevented setuid and setgid permissions from being changed.
sub update
{
local $perms = $in{'perms'};
+if (defined($uid)) {
+ chown($uid, $gid, $_[0]) || &failure(&text('chmod_echown', $!));
+ }
if (defined($perms)) {
if ($_[1]) {
@st = stat($_[0]);
- $perms = ($perms & 0777) | ($st[2] & 037777777000);
+ $perms = ($perms & 07777) | ($st[2] & 037777770000);
}
chmod($perms, $_[0]) || &failure(&text('chmod_echmod', $!));
}
-if (defined($uid)) {
- chown($uid, $gid, $_[0]) || &failure(&text('chmod_echown', $!));
- }
}