oops, applied the ipkg patch with the wrong patchlevel
authorFelix Fietkau <nbd@openwrt.org>
Fri, 25 Jan 2008 16:46:26 +0000 (16:46 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 25 Jan 2008 16:46:26 +0000 (16:46 +0000)
SVN-Revision: 10253

busybox/patches/525-clean_temp.patch [deleted file]
package/busybox/patches/525-clean_temp.patch [new file with mode: 0644]

diff --git a/busybox/patches/525-clean_temp.patch b/busybox/patches/525-clean_temp.patch
deleted file mode 100644 (file)
index 0c3be74..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-diff -urN busybox-1.8.2.old/archival/libipkg/pkg_extract.c busybox-1.8.2.dev/archival/libipkg/pkg_extract.c
---- busybox-1.8.2.old/archival/libipkg/pkg_extract.c   2008-01-23 22:18:44.000000000 +0100
-+++ busybox-1.8.2.dev/archival/libipkg/pkg_extract.c   2008-01-23 22:20:31.000000000 +0100
-@@ -85,6 +85,7 @@
-       free(archive->buffer);
-       free(archive->accept);
-       free(archive);
-+      unlink(name);
-       free(name);
-       return 0;
-@@ -114,6 +115,7 @@
-       close(archive->src_fd);
-       free(archive);
-       free(path);
-+      unlink(name);
-       free(name);
-       return 0;
-@@ -138,6 +140,7 @@
-       close(archive->src_fd);
-       free(archive);
-       free(path);
-+      unlink(name);
-       free(name);
-       return 0;
-@@ -218,6 +221,7 @@
-       fputs(archive->buffer, file);
-       free(archive->buffer);
-       free(archive);
-+      unlink(name);
-       free(name);
-       
-       return 0;
diff --git a/package/busybox/patches/525-clean_temp.patch b/package/busybox/patches/525-clean_temp.patch
new file mode 100644 (file)
index 0000000..0c3be74
--- /dev/null
@@ -0,0 +1,35 @@
+diff -urN busybox-1.8.2.old/archival/libipkg/pkg_extract.c busybox-1.8.2.dev/archival/libipkg/pkg_extract.c
+--- busybox-1.8.2.old/archival/libipkg/pkg_extract.c   2008-01-23 22:18:44.000000000 +0100
++++ busybox-1.8.2.dev/archival/libipkg/pkg_extract.c   2008-01-23 22:20:31.000000000 +0100
+@@ -85,6 +85,7 @@
+       free(archive->buffer);
+       free(archive->accept);
+       free(archive);
++      unlink(name);
+       free(name);
+       return 0;
+@@ -114,6 +115,7 @@
+       close(archive->src_fd);
+       free(archive);
+       free(path);
++      unlink(name);
+       free(name);
+       return 0;
+@@ -138,6 +140,7 @@
+       close(archive->src_fd);
+       free(archive);
+       free(path);
++      unlink(name);
+       free(name);
+       return 0;
+@@ -218,6 +221,7 @@
+       fputs(archive->buffer, file);
+       free(archive->buffer);
+       free(archive);
++      unlink(name);
+       free(name);
+       
+       return 0;