diff options
Diffstat (limited to 'usr.bin/make')
-rw-r--r-- | usr.bin/make/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index e80ff06..24211ba 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -159,7 +159,8 @@ MainParseArgs(int argc, char **argv) rearg: while((c = getopt(argc, argv, OPTFLAGS)) != -1) { switch(c) { case 'C': - chdir(optarg); + if (chdir(optarg) == -1) + err(1, "chdir %s", optarg); break; case 'D': Var_Set(optarg, "1", VAR_GLOBAL); |