diff options
| author | cgd <cgd@NetBSD.org> | 1993-08-23 05:29:31 +0000 |
|---|---|---|
| committer | cgd <cgd@NetBSD.org> | 1993-08-23 05:29:31 +0000 |
| commit | e57d888eede682b7ec86b8b2e5ec8ddd3faef89e (patch) | |
| tree | d1c60463bfa3c39c6d31ff29caa47bde3009558f | |
| parent | 862cf2cf3a6282b6454d127e3265fa52baac8c00 (diff) | |
fix from chmr@edvz.tu-graz.ac.at (Christoph Robitschko)
to get things right if obj is a symlink and points to nowhere.
| -rw-r--r-- | usr.bin/make/main.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index 2d1bfcacf8b..3c532fa0eb5 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -44,7 +44,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)main.c 5.25 (Berkeley) 4/1/91";*/ -static char rcsid[] = "$Id: main.c,v 1.5 1993/08/01 18:11:47 mycroft Exp $"; +static char rcsid[] = "$Id: main.c,v 1.6 1993/08/23 05:29:31 cgd Exp $"; #endif /* not lint */ /*- @@ -365,12 +365,11 @@ main(argc, argv) exit(2); } if (!lstat(path, &sb)) { - obj_is_elsewhere = 1; - if (chdir(path)) { - (void)fprintf(stderr, "make: %s: %s.\n", + if (chdir(path)) + (void)fprintf(stderr, "make warning: %s: %s.\n", path, strerror(errno)); - exit(2); - } + else + obj_is_elsewhere = 1; } create = Lst_Init(FALSE); |
