]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
debugfs: in ea_get -V, don't print double quotes around the C strings
authorTheodore Ts'o <tytso@mit.edu>
Tue, 31 Jan 2017 20:31:13 +0000 (15:31 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 31 Jan 2017 20:31:13 +0000 (15:31 -0500)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
debugfs/xattrs.c

index 1112da490475d072bced1dd61aa7cf558c933ff5..2443518d62124e052964f8346391fab8a79a6001 100644 (file)
@@ -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 {