You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-misc/mc/files/mc-4.8.3-fix-chown-crash.patch

15 lines
649 B

https://www.midnight-commander.org/ticket/2784
https://www.midnight-commander.org/changeset/ac880c71a74c1fc75d7162b2ca3613970479e663
--- mc-4.8.3/src/filemanager/chown.c
+++ mc-4.8.3/src/filemanager/chown.c
@@ -378,7 +378,7 @@
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);