mirror of
https://github.com/bobbimanners/GNO-Extras.git
synced 2024-12-22 02:30:17 +00:00
Minor fix to find error handling
This commit is contained in:
parent
40b7a0e905
commit
4dffe8a31b
@ -525,7 +525,7 @@ void child(char **nargv) {
|
|||||||
chdir(Home);
|
chdir(Home);
|
||||||
rc = execvp(nargv[0], nargv);
|
rc = execvp(nargv[0], nargv);
|
||||||
if (rc == -1)
|
if (rc == -1)
|
||||||
fprintf(stderr, "find: '%s': Can't execute\n", nargv[0]);
|
fprintf(stderr, "find: cannot execute '%s'\n", nargv[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
int doex(int com)
|
int doex(int com)
|
||||||
@ -626,9 +626,9 @@ int descend(char *name, char *fname, struct anode *exlist) {
|
|||||||
for (;;) {
|
for (;;) {
|
||||||
entry = readdir(dp);
|
entry = readdir(dp);
|
||||||
if (!entry) {
|
if (!entry) {
|
||||||
//if (errno != 0) {
|
if (errno != 0) {
|
||||||
// printf("find: cannot read %s (%d)\n", name, errno);
|
printf("find: cannot read %s (%d)\n", name, errno);
|
||||||
//}
|
}
|
||||||
rv = 0;
|
rv = 0;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user