Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make Improve confusing error message when getcwd() f...



details:   https://anonhg.NetBSD.org/src/rev/ed811d7b6f46
branches:  trunk
changeset: 760071:ed811d7b6f46
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Dec 25 20:34:08 2010 +0000

description:
Improve confusing error message when getcwd() fails.

diffstat:

 usr.bin/make/main.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 2ed258e40bab -r ed811d7b6f46 usr.bin/make/main.c
--- a/usr.bin/make/main.c       Sat Dec 25 19:24:28 2010 +0000
+++ b/usr.bin/make/main.c       Sat Dec 25 20:34:08 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.193 2010/12/25 04:57:07 dholland Exp $      */
+/*     $NetBSD: main.c,v 1.194 2010/12/25 20:34:08 dholland Exp $      */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,7 +69,7 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: main.c,v 1.193 2010/12/25 04:57:07 dholland Exp $";
+static char rcsid[] = "$NetBSD: main.c,v 1.194 2010/12/25 20:34:08 dholland Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
@@ -81,7 +81,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.3 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: main.c,v 1.193 2010/12/25 04:57:07 dholland Exp $");
+__RCSID("$NetBSD: main.c,v 1.194 2010/12/25 20:34:08 dholland Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -964,7 +964,8 @@
         * We take care of PWD for the automounter below...
         */
        if (getcwd(curdir, MAXPATHLEN) == NULL) {
-               (void)fprintf(stderr, "%s: %s.\n", progname, strerror(errno));
+               (void)fprintf(stderr, "%s: getcwd: %s.\n",
+                   progname, strerror(errno));
                exit(2);
        }
 



Home | Main Index | Thread Index | Old Index