From 984c18048b81c39bc06b73b484ee6e0d40340e19 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sat, 4 Jun 2016 09:51:23 -0700 Subject: 38599: skip the "no such named directory" warning when NO_EXEC is in effect --- Src/subst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/subst.c') diff --git a/Src/subst.c b/Src/subst.c index 4e13ce11d..8e704b1c1 100644 --- a/Src/subst.c +++ b/Src/subst.c @@ -691,7 +691,7 @@ filesubstr(char **namptr, int assign) return 0; *ptr = 0; if (!(hom = getnameddir(++str))) { - if (isset(NOMATCH)) + if (isset(NOMATCH) && isset(EXECOPT)) zerr("no such user or named directory: %s", str); *ptr = save; return 0; -- cgit 1.4.1