← Commit list

27dd495b9

Bernhard Reutner-Fischer
Bernhard Reutner-Fischer
2008-02-18
FAILED Duration: 19s

Subject

- fix open(creat) without a mode

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/crontab.c+1 -1
@@ -214,7 +214,7 @@ int crontab_main(int argc, char **argv)
/* Bump notification file. Handle window where crond picks file up
* before we can write our entry out.
*/
- while ((fd = open(CRONUPDATE, O_WRONLY|O_CREAT|O_APPEND)) >= 0) {
+ while ((fd = open(CRONUPDATE, O_WRONLY|O_CREAT|O_APPEND, 0600)) >= 0) {
struct stat st;
fdprintf(fd, "%s\n", pas->pw_name);