Since GLOB_NOCHECK is set in the glob(3) call,
glob(3) will return at least one pathname unless a system error has occured. It's not a "not found" error otherwise. MFC after: 3 days
This commit is contained in:
parent
effa0530c4
commit
1d1dc13be6
@ -977,7 +977,7 @@ pathname
|
||||
gl.gl_matchc = MAXGLOBARGS;
|
||||
if (glob($1, flags, NULL, &gl) ||
|
||||
gl.gl_pathc == 0) {
|
||||
reply(550, "not found");
|
||||
reply(550, "wildcard expansion error");
|
||||
$$ = NULL;
|
||||
} else if (gl.gl_pathc > 1) {
|
||||
reply(550, "ambiguous");
|
||||
|
Loading…
Reference in New Issue
Block a user