summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-26 20:55:11 +0000
committerjkh <jkh@FreeBSD.org>1995-05-26 20:55:11 +0000
commitaf8d655cd29c25349aba48637b7b67f737ef7760 (patch)
treedfa6a064669d8a7d194b33d15b7852965c345e26 /usr.sbin
parentdf3b30a20cbe16605fc8a01184e4c400eb7a613f (diff)
downloadFreeBSD-src-af8d655cd29c25349aba48637b7b67f737ef7760.zip
FreeBSD-src-af8d655cd29c25349aba48637b7b67f737ef7760.tar.gz
Put out variable names in quotes.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sade/config.c6
-rw-r--r--usr.sbin/sysinstall/config.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.sbin/sade/config.c b/usr.sbin/sade/config.c
index 83eb98b..fcbf4188 100644
--- a/usr.sbin/sade/config.c
+++ b/usr.sbin/sade/config.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: config.c,v 1.8 1995/05/26 19:28:00 jkh Exp $
+ * $Id: config.c,v 1.9 1995/05/26 20:45:17 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -242,7 +242,7 @@ configSysconfig(void)
if (!strcmp(modify, v->name)) {
free(lines[i]);
lines[i] = (char *)malloc(strlen(v->name) + strlen(v->value) + 3);
- sprintf(lines[i], "%s=%s\n", v->name, v->value);
+ sprintf(lines[i], "%s=\"%s\"\n", v->name, v->value);
}
}
@@ -269,7 +269,7 @@ configSysconfig(void)
snprintf(iname, 64, "%s%s", VAR_IFCONFIG, devp[j]->name);
if (getenv(iname))
- fprintf(fp, "%s=%s\n", iname, getenv(iname));
+ fprintf(fp, "%s=\"%s\"\n", iname, getenv(iname));
}
}
}
diff --git a/usr.sbin/sysinstall/config.c b/usr.sbin/sysinstall/config.c
index 83eb98b..fcbf4188 100644
--- a/usr.sbin/sysinstall/config.c
+++ b/usr.sbin/sysinstall/config.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: config.c,v 1.8 1995/05/26 19:28:00 jkh Exp $
+ * $Id: config.c,v 1.9 1995/05/26 20:45:17 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -242,7 +242,7 @@ configSysconfig(void)
if (!strcmp(modify, v->name)) {
free(lines[i]);
lines[i] = (char *)malloc(strlen(v->name) + strlen(v->value) + 3);
- sprintf(lines[i], "%s=%s\n", v->name, v->value);
+ sprintf(lines[i], "%s=\"%s\"\n", v->name, v->value);
}
}
@@ -269,7 +269,7 @@ configSysconfig(void)
snprintf(iname, 64, "%s%s", VAR_IFCONFIG, devp[j]->name);
if (getenv(iname))
- fprintf(fp, "%s=%s\n", iname, getenv(iname));
+ fprintf(fp, "%s=\"%s\"\n", iname, getenv(iname));
}
}
}
OpenPOWER on IntegriCloud