--- src/usr.bin/make/main.c 2005/06/17 08:11:28 1.112 +++ src/usr.bin/make/main.c 2005/06/17 10:27:53 1.113 @@ -650,7 +650,10 @@ Main_ParseArgLine(MakeFlags *mf, char li } /** - * Try to change the current working directory into path. + * Try to change the current working directory to path, and return + * the whole path using getcwd(). + * + * @note for amd managed mount points we really should use pawd(1). */ static int chdir_verify_path(const char path[], char newdir[]) @@ -662,7 +665,7 @@ chdir_verify_path(const char path[], cha * an error. */ if (stat(path, &sb) < 0) { - return (0); /* fail but no report */ + return (0); } if (S_ISDIR(sb.st_mode) == 0) { return (0);