]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/setup/passwords.c
libsmooth+install: Fix output redirection
[ipfire-2.x.git] / src / setup / passwords.c
index 5b21a97951b778521cc2601b741524c773302138..69f35529f36593223bda59bea3403c7848fce348 100644 (file)
@@ -35,7 +35,7 @@ int handlerootpassword(void)
        
        snprintf(commandstring, STRING_SIZE,
                "/bin/echo 'root:%s' | /usr/sbin/chpasswd", password);
-       if (runhiddencommandwithstatus(commandstring, _("Setting password"), _("Setting 'root' password...."))) {
+       if (runhiddencommandwithstatus(commandstring, _("Setting password"), _("Setting 'root' password...."), NULL)) {
                errorbox(_("Problem setting 'root' password."));
                return 0;
        }
@@ -58,7 +58,7 @@ int handleadminpassword(void)
        snprintf(commandstring, STRING_SIZE,
                "/usr/sbin/htpasswd -c -m -b " CONFIG_ROOT "/auth/users admin '%s'", password);
        sprintf(message, _("Setting %s 'admin' user password..."), NAME);
-       if (runhiddencommandwithstatus(commandstring, _("Setting password"), message)) {
+       if (runhiddencommandwithstatus(commandstring, _("Setting password"), message, NULL)) {
                sprintf(message, _("Problem setting %s 'admin' user password."), NAME);
                errorbox(message);
                return 0;