]> code.citadel.org Git - citadel.git/blobdiff - citadel/setup.c
* Backed out r7276 through r7278. This is too large a change to make during a featur...
[citadel.git] / citadel / setup.c
index a8d4d995606589c95a365285a6f920e2c0aa5e9d..05e6eacb1cad17aa975cccdf7034a16e57a6feb7 100644 (file)
@@ -202,6 +202,8 @@ int yesno(char *question, int default_value)
                        answer = 0;
                }
                break;
+       case UI_SILENT:
+               break;
 
        }
        return (answer);
@@ -300,6 +302,8 @@ void progress(char *text, long int curr, long int cmax)
                        }
                }
                break;
+       case UI_SILENT:
+               break;
 
        }
 }
@@ -701,7 +705,8 @@ void strprompt(char *prompt_title, char *prompt_text, char *str)
                        unlink(dialog_result);
                }
                break;
-
+       case UI_SILENT:
+               break;
        }
 }
 
@@ -972,6 +977,7 @@ void fixnss(void) {
        if (yesno(question, 1)) {
                sprintf(buf, "/bin/mv -f %s %s", new_filename, NSSCONF);
                system(buf);
+               chmod(NSSCONF, 0644);
        }
        unlink(new_filename);
 }