diff --git a/mc-bf3034-zip_in_tar.diff b/mc-bf3034-zip_in_tar.diff new file mode 100644 index 0000000..fed6ce6 --- /dev/null +++ b/mc-bf3034-zip_in_tar.diff @@ -0,0 +1,19 @@ +References: mc#3034 + https://www.midnight-commander.org/ticket/3034 +Upstream: merged +Subject: Cannot enter into zip archive in tar one + +Index: src/filemanager/ext.c +=================================================================== +--- src/filemanager/ext.c (revision 2640b21bb9700aa51a70f35f9e10732c82a7366f) ++++ src/filemanager/ext.c (revision 8cb80dcc9c0c2f36111dd439f3e415cec58f7ffa) +@@ -680,7 +680,7 @@ + #endif /* HAVE_CHARSET */ + ++ got_data = get_file_type_local (localfile_vpath, content_string, sizeof (content_string)); ++ + mc_ungetlocalcopy (filename_vpath, localfile_vpath, FALSE); +- +- got_data = get_file_type_local (localfile_vpath, content_string, sizeof (content_string)); + + if (got_data > 0) diff --git a/mc-bf3040-mcedit_fd_leak.diff b/mc-bf3040-mcedit_fd_leak.diff new file mode 100644 index 0000000..b2d30d1 --- /dev/null +++ b/mc-bf3040-mcedit_fd_leak.diff @@ -0,0 +1,24 @@ +References: mc#3040 + https://www.midnight-commander.org/ticket/3040 +Upstream: merged +Subject: File descriptor leak in mcedit + +Index: src/editor/edit.c +=================================================================== +--- src/editor/edit.c (revision c5924af3c454585a2307a473e8c8e2dcc3cbe4a6) ++++ src/editor/edit.c (revision 4f1801ca11a50187b51916813a3a331e4e3190ba) +@@ -326,4 +326,6 @@ + + cleanup: ++ (void) mc_close (file); ++ + if (errmsg != NULL) + { +@@ -332,7 +334,4 @@ + ret = FALSE; + } +- +- if (!ret) +- (void) mc_close (file); + + return ret; diff --git a/mc.changes b/mc.changes index 2241c8a..41fb991 100644 --- a/mc.changes +++ b/mc.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Thu Jul 18 16:50:05 UTC 2013 - subchaser1@gmail.com + +- most annoying bug fixes imported from upcomming 4.8.10 + * add mc-bf3034-zip_in_tar.diff: Cannot enter into zip archive + in tar one (mc#3034) + * add mc-bf3034-editor-fd-leak.diff: file descriptor leak in + mcedit (mc#3040) + ------------------------------------------------------------------- Wed Jul 17 10:24:58 UTC 2013 - subchaser1@gmail.com diff --git a/mc.spec b/mc.spec index 38d5546..dccfac6 100644 --- a/mc.spec +++ b/mc.spec @@ -53,6 +53,10 @@ Patch41: mc-multi-press-f-keys.patch #Patch adding -fpie and -pie to compilation and linking of setuid binaries Patch52: mc-pie.patch +# bugfixes from upcomming verision +Patch90: mc-bf3034-zip_in_tar.diff +Patch91: mc-bf3040-mcedit_fd_leak.diff + BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: audiofile-devel BuildRequires: docbook-toys @@ -122,6 +126,9 @@ target directory. %patch41 %patch52 -p1 +%patch90 +%patch91 + %build autoreconf --force --install %define warn_flags -W -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security -Wno-unused-parameter