svn commit: trunk/busybox/libbb

landley at busybox.net landley at busybox.net
Tue Mar 14 21:13:49 UTC 2006


Author: landley
Date: 2006-03-14 13:13:48 -0800 (Tue, 14 Mar 2006)
New Revision: 14540

Log:
Attempt to make a warning go away without increasing size.


Modified:
   trunk/busybox/libbb/copy_file.c


Changeset:
Modified: trunk/busybox/libbb/copy_file.c
===================================================================
--- trunk/busybox/libbb/copy_file.c	2006-03-14 20:06:44 UTC (rev 14539)
+++ trunk/busybox/libbb/copy_file.c	2006-03-14 21:13:48 UTC (rev 14540)
@@ -165,11 +165,10 @@
 					return -1;
 				}
 
-				dest_exists = 0;
+				goto dest_removed;
 			}
-		}
-
-		if (!dest_exists) {
+		} else {
+dest_removed:
 			dst_fd = open(dest, O_WRONLY|O_CREAT, source_stat.st_mode);
 			if (dst_fd == -1) {
 				bb_perror_msg("unable to open `%s'", dest);




More information about the busybox-cvs mailing list