reuse a few strings
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Fri, 26 Feb 2010 09:09:31 +0000 (10:09 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 26 Feb 2010 09:09:31 +0000 (10:09 +0100)
   text    data     bss     dec     hex filename
 839040     453    6828  846321   ce9f1 busybox_old
 839019     453    6828  846300   ce9dc busybox_unstripped

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/crond.c
networking/httpd.c

index ebd48121d619144fe07c7c7cf352963ed28b820b..e3714df192e2c6ecfb6e2d75510c34803e2b0469 100644 (file)
@@ -292,9 +292,9 @@ static void ChangeUser(struct passwd *pas)
        /* careful: we're after vfork! */
        change_identity(pas); /* - initgroups, setgid, setuid */
        if (chdir(pas->pw_dir) < 0) {
-               crondlog(WARN9 "can't chdir(%s)", pas->pw_dir);
+               crondlog(WARN9 "chdir(%s)", pas->pw_dir);
                if (chdir(TMPDIR) < 0) {
-                       crondlog(DIE9 "can't chdir(%s)", TMPDIR); /* exits */
+                       crondlog(DIE9 "chdir(%s)", TMPDIR); /* exits */
                }
        }
 }
@@ -575,14 +575,14 @@ static void SynchronizeDir(void)
         */
        unlink(CRONUPDATE);
        if (chdir(CDir) < 0) {
-               crondlog(DIE9 "can't chdir(%s)", CDir);
+               crondlog(DIE9 "chdir(%s)", CDir);
        }
        {
                DIR *dir = opendir(".");
                struct dirent *den;
 
                if (!dir)
-                       crondlog(DIE9 "can't chdir(%s)", "."); /* exits */
+                       crondlog(DIE9 "chdir(%s)", "."); /* exits */
                while ((den = readdir(dir)) != NULL) {
                        if (strchr(den->d_name, '.') != NULL) {
                                continue;
index 227803abf03a5ff2ff195fc97df69f36b63d6e00..5bbc7ee85c18e7438ab2d8c1b355bca69c67882e 100644 (file)
@@ -1432,7 +1432,7 @@ static void send_cgi_and_exit(
                if (script != url) { /* paranoia */
                        *script = '\0';
                        if (chdir(url + 1) != 0) {
-                               bb_perror_msg("chdir %s", url + 1);
+                               bb_perror_msg("chdir(%s)", url + 1);
                                goto error_execing_cgi;
                        }
                        // not needed: *script = '/';