From f3251c8ae2970f90ab8a23cbee83eb1aca010a63 Mon Sep 17 00:00:00 2001 From: sjg Date: Tue, 24 Apr 2012 20:35:04 +0000 Subject: [PATCH] Fix handling of -dF+/tmp/file --- usr.bin/make/main.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/usr.bin/make/main.c b/usr.bin/make/main.c index 7ad823e53190..94448f68643c 100644 --- a/usr.bin/make/main.c +++ b/usr.bin/make/main.c @@ -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 #ifndef lint @@ -81,7 +81,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1990, 1993\ #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 @@ parse_debug_options(const char *argvalue) 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;