This commit is contained in:
Elliott Pardee 2015-06-12 04:25:35 -04:00
parent 4c2d112053
commit 1af43f92ca

View File

@ -15,12 +15,12 @@ process(char *name)
ts.tv_sec = 0;
ts.tv_nsec = 10 * 1000000;
if (access(file, F_OK) == -1) {
if (access(name, F_OK) == -1) {
fprintf(stderr, "[err] no such file or directory\n");
return ENOENT;
}
if (access(file, R_OK) == -1) {
if (access(name, R_OK) == -1) {
fprintf(stderr, "[err] can't read file, permission denied\n");
return EACCES;
}