# HG changeset patch
# User Stefan Monnier <monnier@iro.umontreal.ca>
# Date 1020128448 0
# Node ID 4209fda9d03fcfc2e93236234a0e5a13641b6258
# Parent  f1eb7c3e1e042573578930ee24717f825322a68e
(init_cmdargs): Update call to openp.

diff -r f1eb7c3e1e04 -r 4209fda9d03f src/emacs.c
--- a/src/emacs.c	Tue Apr 30 01:00:24 2002 +0000
+++ b/src/emacs.c	Tue Apr 30 01:00:48 2002 +0000
@@ -447,7 +447,7 @@
     {
       Lisp_Object found;
       int yes = openp (Vexec_path, Vinvocation_name,
-		       Vexec_suffixes, &found, 1);
+		       Vexec_suffixes, &found, make_number (X_OK));
       if (yes == 1)
 	{
 	  /* Add /: to the front of the name