Skip to content
Snippets Groups Projects
Commit 568ea33a authored by Julian Rother's avatar Julian Rother
Browse files

Fixed overwrite_check

parent 9ae62a73
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,6 @@ void overwrite_check(char *path) ...@@ -9,6 +9,6 @@ void overwrite_check(char *path)
if (stat(path, &s) || !s.st_size) if (stat(path, &s) || !s.st_size)
return; /* We can overwrite non-existing or empty files */ return; /* We can overwrite non-existing or empty files */
if (s.st_uid != getuid()) if (s.st_uid != getuid())
job_failed("Refusing to overwrite output file \"%s\": File was not created by worker"); job_failed("Refusing to overwrite output file \"%s\": File was not created by worker", path);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment