summaryrefslogtreecommitdiffstats
path: root/bin/csh/csh.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1996-11-02 01:00:30 +0000
committermillert <millert@openbsd.org>1996-11-02 01:00:30 +0000
commit6b38f15606a6b69e66cd9f1d3f7bc51de959ff25 (patch)
treee1a09bc1825ab0701e106f76b5c38abc292acb91 /bin/csh/csh.c
parenttimed off by default (diff)
downloadwireguard-openbsd-6b38f15606a6b69e66cd9f1d3f7bc51de959ff25.tar.xz
wireguard-openbsd-6b38f15606a6b69e66cd9f1d3f7bc51de959ff25.zip
Update from NetBSD (christos)
Quote all imported environment variables.
Diffstat (limited to 'bin/csh/csh.c')
-rw-r--r--bin/csh/csh.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/csh/csh.c b/bin/csh/csh.c
index 712bb1f12ae..536198ecdb6 100644
--- a/bin/csh/csh.c
+++ b/bin/csh/csh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: csh.c,v 1.4 1996/10/27 23:45:32 millert Exp $ */
+/* $OpenBSD: csh.c,v 1.5 1996/11/02 01:00:30 millert Exp $ */
/* $NetBSD: csh.c,v 1.14 1995/04/29 23:21:28 mycroft Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)csh.c 8.2 (Berkeley) 10/12/93";
#else
-static char rcsid[] = "$OpenBSD: csh.c,v 1.4 1996/10/27 23:45:32 millert Exp $";
+static char rcsid[] = "$OpenBSD: csh.c,v 1.5 1996/11/02 01:00:30 millert Exp $";
#endif
#endif /* not lint */
@@ -251,15 +251,15 @@ main(argc, argv)
*/
if ((tcp = getenv("LOGNAME")) != NULL ||
(tcp = getenv("USER")) != NULL)
- set(STRuser, SAVE(tcp));
+ set(STRuser, quote(SAVE(tcp)));
if ((tcp = getenv("TERM")) != NULL)
- set(STRterm, SAVE(tcp));
+ set(STRterm, quote(SAVE(tcp)));
/*
* Re-initialize path if set in environment
*/
if ((tcp = getenv("PATH")) == NULL)
- set1(STRpath, defaultpath(), &shvhed);
+ setq(STRpath, defaultpath(), &shvhed);
else
importpath(SAVE(tcp));