From e6cfe7f6bbcfb1af0a47ea167e7185d71343748f Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Fri, 20 Mar 2009 16:36:12 +0000 Subject: [PATCH] * When aborting because of unsafe permissions on citadel.config, only show the last three digits of the permissions. --- citadel/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/citadel/config.c b/citadel/config.c index 830627043..309896742 100644 --- a/citadel/config.c +++ b/citadel/config.c @@ -63,7 +63,7 @@ void get_config(void) { int desired_mode = (S_IFREG | S_IRUSR | S_IWUSR) ; if (st.st_mode != desired_mode) { fprintf(stderr, "%s must be set to permissions mode %03o but they are %03o\n", - file_citadel_config, desired_mode, st.st_mode); + file_citadel_config, (desired_mode & 0xFFF), (st.st_mode & 0xFFF)); exit(CTDLEXIT_CONFIG); } #endif -- 2.30.2