/* -*-c-*-
*
- * $Id: become.c,v 1.20 1999/05/04 16:17:11 mdw Exp $
+ * $Id: become.c,v 1.21 1999/07/28 09:31:01 mdw Exp $
*
* Main code for `become'
*
/*----- Revision history --------------------------------------------------*
*
* $Log: become.c,v $
+ * Revision 1.21 1999/07/28 09:31:01 mdw
+ * Empty path components are equivalent to `.'.
+ *
* Revision 1.20 1999/05/04 16:17:11 mdw
* Change to header file name for parser. See log for `parse.h' for
* details.
* Bugtraq, as a complaint against sudo.]
*/
+ if (!*p) p = ".";
sprintf(rq.cmd, "%s/%s", p, binary);
if (stat(rq.cmd, &st) == 0 && /* Check it exists */
st.st_mode & 0111 && /* Check it's executable */