← Commit list

5a7ec22c4

Glenn L McGrath
Glenn L McGrath
2002-11-10
FAILED Duration: 6s

Subject

last_patch64 from Vladimir N. Oleynik

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 →

include/applets.h+1 -1
@@ -111,7 +111,7 @@
APPLET(crond, crond_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
#endif
#ifdef CONFIG_CRONTAB
- APPLET(crontab, crontab_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
+ APPLET(crontab, crontab_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
#endif
#ifdef CONFIG_CUT
APPLET(cut, cut_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
miscutils/crontab.c+2 -2
@@ -204,14 +204,14 @@ crontab_main(int ac, char **av)
int n;
snprintf(path, sizeof(path), "%s.new", pas->pw_name);
- if ((fd = open(path, O_CREAT|O_TRUNC|O_EXCL|O_APPEND|O_WRONLY, 0600)) >= 0) {
+ if ((fd = open(path, O_CREAT|O_TRUNC|O_APPEND|O_WRONLY, 0600)) >= 0) {
while ((n = read(repFd, buf, sizeof(buf))) > 0) {
write(fd, buf, n);
}
close(fd);
rename(path, pas->pw_name);
} else {
- error_msg("unable to create %s/%s", CDir, buf);
+ error_msg("unable to create %s/%s", CDir, path);
}
close(repFd);
}