mirror of
https://github.com/sheumann/hush.git
synced 2025-01-02 09:31:26 +00:00
- fix open(creat) without a mode
This commit is contained in:
parent
b4133683a4
commit
27dd495b98
@ -214,7 +214,7 @@ int crontab_main(int argc, char **argv)
|
|||||||
/* Bump notification file. Handle window where crond picks file up
|
/* Bump notification file. Handle window where crond picks file up
|
||||||
* before we can write our entry out.
|
* 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;
|
struct stat st;
|
||||||
|
|
||||||
fdprintf(fd, "%s\n", pas->pw_name);
|
fdprintf(fd, "%s\n", pas->pw_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user