summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1994-09-08 06:38:55 +0000
committerjkh <jkh@FreeBSD.org>1994-09-08 06:38:55 +0000
commit174221e60a57ba72d6ed3accbb1ac8572eadf7eb (patch)
tree2e1ce5517b37196b7ef3544db4ba4c4af96e6fdc /usr.sbin/config
parent0264427a622649306adcc89c3cb4dd9abc48eed9 (diff)
downloadFreeBSD-src-174221e60a57ba72d6ed3accbb1ac8572eadf7eb.zip
FreeBSD-src-174221e60a57ba72d6ed3accbb1ac8572eadf7eb.tar.gz
Undo the damage done to my previous changes. Whoever added the
conditional did it backwards, thus flipping the behavior back off again by default (and only re-enableable through a very counter-intuitive option setting!). I'm glad I caught this and would merely like to state again for the record that if you're going to go and modify my changes then you should at least: 1. Do it correctly, since to do otherwise is kind of a slap in the face. 2. TELL me. This is not me just being compulsive, this is simple courtesy. I'm speaking just of my own preferences here, not necessarily trying to impose my standards on the group at large (e.g. some other folks might not even care). Submitted by: jkh
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c
index a54797f3..76c2200 100644
--- a/usr.sbin/config/main.c
+++ b/usr.sbin/config/main.c
@@ -90,7 +90,7 @@ usage: fputs("usage: config [-gp] sysname\n", stderr);
perror(PREFIX);
exit(2);
}
-#ifndef CONFIG_DONT_CLOBBER
+#ifdef CONFIG_DONT_CLOBBER
if (stat(p = path((char *)NULL), &buf)) {
#else /* CONFIG_DONT_CLOBBER */
p = path((char *)NULL);
@@ -104,7 +104,7 @@ usage: fputs("usage: config [-gp] sysname\n", stderr);
else if ((buf.st_mode & S_IFMT) != S_IFDIR) {
fprintf(stderr, "config: %s isn't a directory.\n", p);
exit(2);
-#ifdef CONFIG_DONT_CLOBBER
+#ifndef CONFIG_DONT_CLOBBER
}
else {
char tmp[strlen(p) + 8];
OpenPOWER on IntegriCloud