rewritten by millert
This commit is contained in:
@@ -107,7 +107,7 @@ char *find_path(file)
|
|||||||
/* stat the file to make sure it exists and is executable */
|
/* stat the file to make sure it exists and is executable */
|
||||||
if (!stat(fn, &statbuf) && (statbuf.st_mode & 0000111))
|
if (!stat(fn, &statbuf) && (statbuf.st_mode & 0000111))
|
||||||
return (qualify(fn));
|
return (qualify(fn));
|
||||||
else if (errno == ENOENT || errno == ENOTDIR)
|
else if (errno == ENOENT)
|
||||||
path=n+1;
|
path=n+1;
|
||||||
else {
|
else {
|
||||||
perror("find_path: stat");
|
perror("find_path: stat");
|
||||||
|
Reference in New Issue
Block a user