diff options
author | David Sterba <dsterba@suse.com> | 2016-11-07 11:43:40 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-12-14 15:06:34 +0100 |
commit | 25afadfc720ef5410211c3f4f85c8f4a0858b8d9 (patch) | |
tree | 7da6ea874cf7345eaa479f95ef851c35801bb4d0 /send-dump.c | |
parent | 637563be3ca6e2ed020db7005e1bb761e08979f6 (diff) |
btrfs-progs: send dump: print escaped path
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'send-dump.c')
-rw-r--r-- | send-dump.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/send-dump.c b/send-dump.c index 9cc84c23..064c914e 100644 --- a/send-dump.c +++ b/send-dump.c @@ -110,7 +110,13 @@ static int __print_dump(int subvol, void *user, const char *path, } /* Unified header */ - printf("%-16s%-32s", title, out_path); + printf("%-16s", title); + ret = print_path_escaped(out_path); + if (!fmt) + return 0; + /* Short paths ale aligned to 32 chars */ + while (ret++ < 32) + putchar(' '); va_start(args, fmt); /* Operation specified ones */ vprintf(fmt, args); |