Change criteria for expunging items from the user's PATH: instead of
authormdw <mdw>
Mon, 8 Sep 1997 13:56:24 +0000 (13:56 +0000)
committermdw <mdw>
Mon, 8 Sep 1997 13:56:24 +0000 (13:56 +0000)
removing things starting with `.', remove things not starting with `/'.

src/become.c

index 00d4674..d43bb36 100644 (file)
@@ -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'
  *
 /*----- 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++;