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:
Yaroslav Tykhiy 2002-08-05 14:40:38 +00:00
parent effa0530c4
commit 1d1dc13be6

View File

@ -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");