summaryrefslogtreecommitdiff
path: root/unpack/rdsquashfs.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-04 01:10:24 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-04 01:15:11 +0200
commit85e2e1629ba43ea2b2a11b1f81e3538e3cea64da (patch)
tree4d6da28635d2543040a9481e2853765f993f9648 /unpack/rdsquashfs.c
parentd443bc79b599eb6e6054a0feb4d0d0654b2c683f (diff)
Make sure file listing generated by rdsquashfs -d is propperly escaped
File names may contain traces of white space. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'unpack/rdsquashfs.c')
-rw-r--r--unpack/rdsquashfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/unpack/rdsquashfs.c b/unpack/rdsquashfs.c
index 2162cc4..dc43fcd 100644
--- a/unpack/rdsquashfs.c
+++ b/unpack/rdsquashfs.c
@@ -119,7 +119,8 @@ int main(int argc, char **argv)
goto out_fs;
break;
case OP_DESCRIBE:
- describe_tree(fs.root, opt.unpack_root);
+ if (describe_tree(fs.root, opt.unpack_root))
+ goto out_fs;
break;
case OP_RDATTR:
if (n->xattr != NULL)