diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-07-07 22:45:26 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-07-07 22:45:26 +0000 |
| commit | e4cff55ea3b45c64926db1f5d43982f13eb2c9a2 (patch) | |
| tree | 413288aa438e39438f28e4fd7dda38d3348c646f /bin/csh | |
| parent | 799d8c1a69e1218e588de1a2296f006048649fa3 (diff) | |
Notes
Diffstat (limited to 'bin/csh')
| -rw-r--r-- | bin/csh/csh.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/csh/csh.c b/bin/csh/csh.c index f6a24e3b9c4fe..d43fb61abe3e4 100644 --- a/bin/csh/csh.c +++ b/bin/csh/csh.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: csh.c,v 1.2 1994/09/24 02:53:51 davidg Exp $ + * $Id: csh.c,v 1.3 1995/05/30 00:06:30 rgrimes Exp $ */ #ifndef lint @@ -618,7 +618,8 @@ importpath(cp) for (;;) { if ((c = *dp) == ':' || c == 0) { *dp = 0; - if ((*cp != '/' || *cp == '\0') && (euid == 0 || uid == 0)) + if ((*cp != '/' || *cp == '\0') && (euid == 0 || uid == 0) && + (intact || intty && isatty(SHOUT))) (void) fprintf(csherr, "Warning: imported path contains relative components\n"); pv[i++] = Strsave(*cp ? cp : STRdot); |
