[Libguestfs] [PATCH] supermin: Handle FTSENT.fts_info correctly -- it is not a bitmask.

Hilko Bengen bengen at hilluzination.de
Wed Mar 5 20:21:36 UTC 2014


Found by trying to build a simple appliance using

    $ supermin --prepare -o supermin.d dash

and adding a tarball containing a symbolic link (/init -> /bin/sh).
This symbolic link was not transferred to the filesystem.
---
 src/ext2fs-c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ext2fs-c.c b/src/ext2fs-c.c
index 25f6788..4d1004c 100644
--- a/src/ext2fs-c.c
+++ b/src/ext2fs-c.c
@@ -233,7 +233,7 @@ supermin_ext2fs_copy_dir_recursively_from_host (value fsv,
       break;
 
     /* Ignore directories being visited in post-order. */
-    if (entry->fts_info & FTS_DP)
+    if (entry->fts_info == FTS_DP)
       continue;
 
     /* Copy the file. */
-- 
1.9.0




More information about the Libguestfs mailing list