From: Theodore Ts'o Date: Tue, 31 Jan 2017 20:31:13 +0000 (-0500) Subject: debugfs: in ea_get -V, don't print double quotes around the C strings X-Git-Tag: 1.43.4~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8438351511f7ad968f51505304b8b14a3dd28d03;p=thirdparty%2Fe2fsprogs.git debugfs: in ea_get -V, don't print double quotes around the C strings Signed-off-by: Theodore Ts'o --- diff --git a/debugfs/xattrs.c b/debugfs/xattrs.c index 1112da490..2443518d6 100644 --- a/debugfs/xattrs.c +++ b/debugfs/xattrs.c @@ -168,7 +168,8 @@ void do_get_xattr(int argc, char **argv) print_flags |= PRINT_XATTR_HEX; break; case 'V': - print_flags |= PRINT_XATTR_RAW; + print_flags |= PRINT_XATTR_RAW| + PRINT_XATTR_NOQUOTES; break; case 'C': print_flags |= PRINT_XATTR_C; @@ -213,7 +214,7 @@ void do_get_xattr(int argc, char **argv) fwrite(buf, buflen, 1, fp); } else { if (print_flags & PRINT_XATTR_RAW) { - if (print_flags & PRINT_XATTR_HEX|PRINT_XATTR_C) + if (print_flags & (PRINT_XATTR_HEX|PRINT_XATTR_C)) print_flags &= ~PRINT_XATTR_RAW; print_xattr_string(stdout, buf, buflen, print_flags); } else {