Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/make Fix handling of -dF+/tmp/file



details:   https://anonhg.NetBSD.org/src/rev/a8bb97ba762f
branches:  trunk
changeset: 778998:a8bb97ba762f
user:      sjg <sjg%NetBSD.org@localhost>
date:      Tue Apr 24 20:35:04 2012 +0000

description:
Fix handling of -dF+/tmp/file

diffstat:

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

diffs (40 lines):

diff -r 0f44f2ab8ceb -r a8bb97ba762f usr.bin/make/main.c
--- a/usr.bin/make/main.c       Tue Apr 24 20:26:58 2012 +0000
+++ b/usr.bin/make/main.c       Tue Apr 24 20:35:04 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.198 2011/09/16 15:38:04 joerg Exp $ */
+/*     $NetBSD: main.c,v 1.199 2012/04/24 20:35:04 sjg Exp $   */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1993
@@ -69,7 +69,7 @@
  */
 
 #ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: main.c,v 1.198 2011/09/16 15:38:04 joerg Exp $";
+static char rcsid[] = "$NetBSD: main.c,v 1.199 2012/04/24 20:35:04 sjg 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.198 2011/09/16 15:38:04 joerg Exp $");
+__RCSID("$NetBSD: main.c,v 1.199 2012/04/24 20:35:04 sjg Exp $");
 #endif
 #endif /* not lint */
 #endif
@@ -269,9 +269,10 @@
                case 'F':
                        if (debug_file != stdout && debug_file != stderr)
                                fclose(debug_file);
-                       if (*++modules == '+')
+                       if (*++modules == '+') {
+                               modules++;
                                mode = "a";
-                       else
+                       } else
                                mode = "w";
                        if (strcmp(modules, "stdout") == 0) {
                                debug_file = stdout;



Home | Main Index | Thread Index | Old Index