comparison src/emacs.c @ 45003:4209fda9d03f

(init_cmdargs): Update call to openp.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 30 Apr 2002 01:00:48 +0000
parents 01b93e5e53a7
children 32cb1788d9cd
comparison
equal deleted inserted replaced
45002:f1eb7c3e1e04 45003:4209fda9d03f
445 Emacs actually came from. */ 445 Emacs actually came from. */
446 if (NILP (Vinvocation_directory)) 446 if (NILP (Vinvocation_directory))
447 { 447 {
448 Lisp_Object found; 448 Lisp_Object found;
449 int yes = openp (Vexec_path, Vinvocation_name, 449 int yes = openp (Vexec_path, Vinvocation_name,
450 Vexec_suffixes, &found, 1); 450 Vexec_suffixes, &found, make_number (X_OK));
451 if (yes == 1) 451 if (yes == 1)
452 { 452 {
453 /* Add /: to the front of the name 453 /* Add /: to the front of the name
454 if it would otherwise be treated as magic. */ 454 if it would otherwise be treated as magic. */
455 tem = Ffind_file_name_handler (found, Qt); 455 tem = Ffind_file_name_handler (found, Qt);