From 3e2d2f3e9e13d5ec01940431e354b761995831db Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 18 Jul 2013 14:23:12 -0400 Subject: [PATCH] main: show: Don't strip mode, let's see the whole thing Just useful for debugging. --- src/ostree/ot-builtin-show.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ostree/ot-builtin-show.c b/src/ostree/ot-builtin-show.c index 4ae36aba..95b2af27 100644 --- a/src/ostree/ot-builtin-show.c +++ b/src/ostree/ot-builtin-show.c @@ -133,7 +133,7 @@ show_repo_meta (OstreeRepo *repo, g_printerr ("(unknown type %u)\n", (guint)filetype); } - g_print ("Mode: 0%04o\n", g_file_info_get_attribute_uint32 (finfo, "unix::mode") & ~S_IFMT); + g_print ("Mode: 0%04o\n", g_file_info_get_attribute_uint32 (finfo, "unix::mode")); g_print ("Uid: %u\n", g_file_info_get_attribute_uint32 (finfo, "unix::uid")); g_print ("Gid: %u\n", g_file_info_get_attribute_uint32 (finfo, "unix::gid"));