From 1f980897f6947dd17eaa0190b2c1a23fb700636b Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 17 Jul 2019 10:53:22 +0200 Subject: fstree: add support for spaces in filenames This commit adds a mechanism to fstree_from_file to support filenames with spaces in them by quoting the entire string. Quote marks can still be used inside file names by escaping them with a backslash. Back slashes (if that is your thing) can also be escaped. Signed-off-by: David Oberhollenzer --- doc/gensquashfs.1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/gensquashfs.1 b/doc/gensquashfs.1 index 8050dc6..c52ce70 100644 --- a/doc/gensquashfs.1 +++ b/doc/gensquashfs.1 @@ -100,7 +100,10 @@ l l l l l l rd. -;Absolute path of the entry in the image. +;T{ +Absolute path of the entry in the image. Can be put in quotes +if some components contain spaces. +T} ;T{ Optional location of the input file. Can be specified relative to either the description file or the pack directory. If omitted, the image path is used @@ -132,6 +135,9 @@ file /sbin/init 0755 0 0 ../init/sbin/init # Read from ./bin/bash relative to pack dir or listing path # /bin is created implicitly with default attributes. file /bin/bash 0755 0 0 + +# file name with a space in it and a "special" name +file "/opt/my app/\\"special\\"/data" 0600 0 0 .fi .in .SH AUTHOR -- cgit v1.2.3