* When aborting because of unsafe permissions on citadel.config, only show the last...
authorArt Cancro <ajc@citadel.org>
Fri, 20 Mar 2009 16:36:12 +0000 (16:36 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 20 Mar 2009 16:36:12 +0000 (16:36 +0000)
citadel/config.c

index 830627043ded7b399fe8e6a87331cd2ca0ada482..30989674216419f9199770a92828db18bfacf3a8 100644 (file)
@@ -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