sudo: need to actually *write* to file to update mtime - this is possibly a kernel issue
This commit is contained in:
parent
c87a195ffe
commit
c867f6e84b
@ -118,7 +118,7 @@ static int sudo_loop(int (*prompt_callback)(char * username, char * password, in
|
||||
}
|
||||
|
||||
/* Write a timestamp file */
|
||||
FILE * f = fopen(token_file, "a");
|
||||
FILE * f = fopen(token_file, "w");
|
||||
if (!f) {
|
||||
fprintf(stderr, "%s: (warning) failed to create token file\n", argv[0]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user