From 6a4ec25cbad369c187a111c4ca39dd13fdb3a6e7 Mon Sep 17 00:00:00 2001 From: mdw Date: Mon, 8 Sep 1997 13:56:24 +0000 Subject: [PATCH] Change criteria for expunging items from the user's PATH: instead of removing things starting with `.', remove things not starting with `/'. --- src/become.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/become.c b/src/become.c index 00d4674..d43bb36 100644 --- a/src/become.c +++ b/src/become.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: become.c,v 1.7 1997/09/08 13:43:20 mdw Exp $ + * $Id: become.c,v 1.8 1997/09/08 13:56:24 mdw Exp $ * * Main code for `become' * @@ -29,7 +29,11 @@ /*----- Revision history --------------------------------------------------* * * $Log: become.c,v $ - * Revision 1.7 1997/09/08 13:43:20 mdw + * Revision 1.8 1997/09/08 13:56:24 mdw + * Change criteria for expunging items from the user's PATH: instead of + * removing things starting with `.', remove things not starting with `/'. + * + * Revision 1.7 1997/09/08 13:43:20 mdw * Change userid when creating tracefiles rather than fiddling with * `access': it works rather better. Also, insert some stdio buffer * flushing to ensure tracedumps are completely written. @@ -962,7 +966,7 @@ done_options: q = e->val + 5; for (p = strtok(p, ":"); p; p = strtok(0, ":")) { - if (p[0] == '.') + if (p[0] != '/') continue; while (*p) *q++ = *p++; -- 2.11.0