[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BusyBox] bug#1031: Corrected patch
From:       David Vrabel <dvrabel () arcom ! co ! uk>
Date:       2000-08-25 9:43:00
[Download RAW message or body]

Oops.  Got the variable name wrong...

--- tar.c.orig  Thu Aug 24 16:32:03 2000
+++ tar.c.unlinkfixed   Fri Aug 25 10:40:46 2000
@@ -649,9 +649,10 @@
                        printf("\n");
                }
 
-               /* Remove any clutter lying in our way */
-               if (extractFlag == TRUE)        /* .. but only if we are
extracting (as */
-                       unlink( header.name);   /* opposed to listing)
(rob@sysgo.de)   */
+               /* Remove files if we would overwrite them */
+               if (extractFlag == TRUE && tostdoutFlag == FALSE) {
+                       unlink(header.name);
+               }
 
                /* If we got here, we can be certain we have a
legitimate
                 * header to work with.  So work with it.  */





[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic