/* -*-c-*-
*
- * $Id: become.c,v 1.19 1998/06/29 13:10:41 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.19 1998/06/29 13:10:41 mdw
+ * 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.
+ *
+ * Revision 1.19 1998/06/29 13:10:41 mdw
* Add some commentary regarding an issue in `sudo' which affects `become';
* I'm not fixing it yet because I don't think it's important.
*
#include "lexer.h"
#include "mdwopt.h"
#include "name.h"
-#include "parser.h"
+#include "parse.h"
#include "rule.h"
#include "sym.h"
#include "utils.h"
* 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 */