Ticket #2784: segfault at chown.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2012-04-23 09:37:32 +04:00
parent cb2082502d
commit 47a067c333

View File

@ -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);