summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/mc/files/mc-4.8.3-fix-chown-crash.patch')
-rw-r--r--app-misc/mc/files/mc-4.8.3-fix-chown-crash.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/app-misc/mc/files/mc-4.8.3-fix-chown-crash.patch b/app-misc/mc/files/mc-4.8.3-fix-chown-crash.patch
new file mode 100644
index 000000000000..8ea232d15593
--- /dev/null
+++ b/app-misc/mc/files/mc-4.8.3-fix-chown-crash.patch
@@ -0,0 +1,14 @@
+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);