/* -*-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.
q = e->val + 5;
for (p = strtok(p, ":"); p; p = strtok(0, ":")) {
- if (p[0] == '.')
+ if (p[0] != '/')
continue;
while (*p)
*q++ = *p++;