From 2425ddde47ea4a3fbd92ad3967f74f32adeeff84 Mon Sep 17 00:00:00 2001 From: mycroft Date: Sun, 15 Jan 1995 09:47:36 +0000 Subject: [PATCH] Remove the gratuitous `security' warnings. --- bin/csh/csh.c | 5 +---- bin/csh/set.c | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/bin/csh/csh.c b/bin/csh/csh.c index 661d15738efd..9801539459f0 100644 --- a/bin/csh/csh.c +++ b/bin/csh/csh.c @@ -39,7 +39,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)csh.c 8.2 (Berkeley) 10/12/93";*/ -static char *rcsid = "$Id: csh.c,v 1.8 1994/09/23 11:16:28 mycroft Exp $"; +static char *rcsid = "$Id: csh.c,v 1.9 1995/01/15 09:47:36 mycroft Exp $"; #endif /* not lint */ #include @@ -616,9 +616,6 @@ importpath(cp) for (;;) { if ((c = *dp) == ':' || c == 0) { *dp = 0; - if ((*cp != '/' || *cp == '\0') && (euid == 0 || uid == 0)) - (void) fprintf(csherr, - "Warning: imported path contains relative components\n"); pv[i++] = Strsave(*cp ? cp : STRdot); if (c) { cp = dp + 1; diff --git a/bin/csh/set.c b/bin/csh/set.c index 6a77f5f00ab0..afc67dc12e76 100644 --- a/bin/csh/set.c +++ b/bin/csh/set.c @@ -33,7 +33,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)set.c 8.1 (Berkeley) 5/31/93";*/ -static char *rcsid = "$Id: set.c,v 1.5 1994/09/21 00:11:16 mycroft Exp $"; +static char *rcsid = "$Id: set.c,v 1.6 1995/01/15 09:47:38 mycroft Exp $"; #endif /* not lint */ #include @@ -663,9 +663,6 @@ exportpath(val) "Warning: ridiculously long PATH truncated\n"); break; } - if ((**val != '/' || **val == '\0') && (euid == 0 || uid == 0)) - (void) fprintf(csherr, - "Warning: exported path contains relative components.\n"); (void) Strcat(exppath, *val++); if (*val == 0 || eq(*val, STRRparen)) break;