Changeset f95481 in git


Ignore:
Timestamp:
Dec 15, 2016, 4:40:47 PM (7 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'd08f5f0bb3329b8ca19f23b74cb1473686415c3a')
Children:
d4074372de7adff86fa2669958131b9b4b479376
Parents:
929860465c793e498eda0b951eaf02942532ee38
Message:
omFindExec: test F_OK, not X_OK
File:
1 edited

Legend:

Unmodified
Added
Removed
  • resources/omFindExec.c

    r929860 rf95481  
    4343  if (ABSOLUTE_FILENAME_P(name))
    4444  {
    45       /* If we can execute the named file then return it. */
    46       if (! access (name, X_OK))
     45      /* If the named file exists then return it. */
     46      if (! access (name, F_OK)) //think of libSingular.so as main binary
     47                                 // r or x is required
    4748      {
    4849        strcpy(executable, name);
     
    6667      strcat (tbuf, "/");
    6768      strcat (tbuf, name);
    68       if (! access(tbuf, X_OK))
     69      if (! access(tbuf, F_OK))
    6970      {
    7071        strcpy(executable, tbuf);
Note: See TracChangeset for help on using the changeset viewer.