Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make When attempting to chdir to .CURDIR because Che...



details:   https://anonhg.NetBSD.org/src/rev/3617af9442f1
branches:  trunk
changeset: 516126:3617af9442f1
user:      sjg <sjg%NetBSD.org@localhost>
date:      Tue Oct 16 18:06:29 2001 +0000

description:
When attempting to chdir to .CURDIR because Check_Cwd_Cmd says we need to
make sure that the dir actually exists.  In compat mode the corresponding
chdir simply fails and all is well - the issue only arises when playing
tricky games with the value of .CURDIR.

Reviewed: christos

diffstat:

 usr.bin/make/job.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 145c91f1a1e1 -r 3617af9442f1 usr.bin/make/job.c
--- a/usr.bin/make/job.c        Tue Oct 16 18:05:26 2001 +0000
+++ b/usr.bin/make/job.c        Tue Oct 16 18:06:29 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: job.c,v 1.54 2001/08/20 12:00:55 wiz Exp $     */
+/*     $NetBSD: job.c,v 1.55 2001/10/16 18:06:29 sjg Exp $     */
 
 /*
  * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -39,14 +39,14 @@
  */
 
 #ifdef MAKE_BOOTSTRAP
-static char rcsid[] = "$NetBSD: job.c,v 1.54 2001/08/20 12:00:55 wiz Exp $";
+static char rcsid[] = "$NetBSD: job.c,v 1.55 2001/10/16 18:06:29 sjg Exp $";
 #else
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static char sccsid[] = "@(#)job.c      8.2 (Berkeley) 3/19/94";
 #else
-__RCSID("$NetBSD: job.c,v 1.54 2001/08/20 12:00:55 wiz Exp $");
+__RCSID("$NetBSD: job.c,v 1.55 2001/10/16 18:06:29 sjg Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -715,6 +715,7 @@
     }
     
     if ((cp = Check_Cwd_Cmd(cmd)) != NULL) {
+           DBPRINTF("test -d %s && ", cp);
            DBPRINTF("cd %s; ", cp);
     }              
     DBPRINTF(cmdTemplate, cmd);



Home | Main Index | Thread Index | Old Index