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