← Commit list

ca228fb16

Bernhard Reutner-Fischer
Bernhard Reutner-Fischer
2010-02-26
FAILED Duration: 25s

Subject

reuse a few strings

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

miscutils/crond.c+4 -4
@@ -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;
networking/httpd.c+1 -1
@@ -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 = '/';