mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
Ticket #2784: segfault at chown.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
cb2082502d
commit
47a067c333
@ -378,7 +378,7 @@ chown_cmd (void)
|
|||||||
if (mc_chown (fname_vpath, new_user, new_group) == -1)
|
if (mc_chown (fname_vpath, new_user, new_group) == -1)
|
||||||
message (D_ERROR, MSG_ERROR, _("Cannot chown \"%s\"\n%s"),
|
message (D_ERROR, MSG_ERROR, _("Cannot chown \"%s\"\n%s"),
|
||||||
fname, unix_error_string (errno));
|
fname, unix_error_string (errno));
|
||||||
vfs_path_free (vpath);
|
vfs_path_free (fname_vpath);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
apply_chowns (new_user, new_group);
|
apply_chowns (new_user, new_group);
|
||||||
|
Loading…
Reference in New Issue
Block a user