sudo: need to actually *write* to file to update mtime - this is possibly a kernel issue

This commit is contained in:
K. Lange 2018-12-27 21:16:02 +09:00
parent c87a195ffe
commit c867f6e84b

View File

@ -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]);
}