Module Name: src Committed By: sjg Date: Tue Apr 24 20:35:04 UTC 2012
Modified Files: src/usr.bin/make: main.c Log Message: Fix handling of -dF+/tmp/file To generate a diff of this commit: cvs rdiff -u -r1.198 -r1.199 src/usr.bin/make/main.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/make/main.c diff -u src/usr.bin/make/main.c:1.198 src/usr.bin/make/main.c:1.199 --- src/usr.bin/make/main.c:1.198 Fri Sep 16 15:38:04 2011 +++ src/usr.bin/make/main.c Tue Apr 24 20:35:04 2012 @@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 19 #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;