[Pkg-shadow-commits] r1521 - upstream/trunk/libmisc

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Fri Dec 28 00:08:16 UTC 2007


Author: nekral-guest
Date: 2007-12-28 00:08:16 +0000 (Fri, 28 Dec 2007)
New Revision: 1521

Modified:
   upstream/trunk/libmisc/copydir.c
Log:
Stop at the first error.


Modified: upstream/trunk/libmisc/copydir.c
===================================================================
--- upstream/trunk/libmisc/copydir.c	2007-12-28 00:04:46 UTC (rev 1520)
+++ upstream/trunk/libmisc/copydir.c	2007-12-28 00:08:16 UTC (rev 1521)
@@ -217,7 +217,7 @@
 		dst_orig = dst_root;
 		set_orig++;
 	}
-	while ((ent = readdir (dir))) {
+	while ((0 == err) && (ent = readdir (dir)) != NULL) {
 
 		/*
 		 * Skip the "." and ".." entries




More information about the Pkg-shadow-commits mailing list