Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/config Properly handle absolute prefix.
details: https://anonhg.NetBSD.org/src/rev/9b7931b7975e
branches: trunk
changeset: 340329:9b7931b7975e
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Tue Sep 01 01:17:56 2015 +0000
description:
Properly handle absolute prefix.
diffstat:
usr.bin/config/mkmakefile.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 9fd2a5d14269 -r 9b7931b7975e usr.bin/config/mkmakefile.c
--- a/usr.bin/config/mkmakefile.c Tue Sep 01 00:56:17 2015 +0000
+++ b/usr.bin/config/mkmakefile.c Tue Sep 01 01:17:56 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mkmakefile.c,v 1.50 2015/09/01 00:38:30 uebayasi Exp $ */
+/* $NetBSD: mkmakefile.c,v 1.51 2015/09/01 01:17:56 uebayasi Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: mkmakefile.c,v 1.50 2015/09/01 00:38:30 uebayasi Exp $");
+__RCSID("$NetBSD: mkmakefile.c,v 1.51 2015/09/01 01:17:56 uebayasi Exp $");
#include <sys/param.h>
#include <ctype.h>
@@ -300,6 +300,8 @@
if (*fit->fit_path != '/') {
prologue = "$S/";
if (fit->fit_prefix != NULL) {
+ if (*fit->fit_prefix == '/')
+ prologue = "";
prefix = fit->fit_prefix;
sep = "/";
}
Home |
Main Index |
Thread Index |
Old Index