platform/unix.c
changeset 505 c7f7f234a156
parent 452 89578e99ba6e
child 520 a72bbf255074
equal deleted inserted replaced
504:3420d82f9b01 505:c7f7f234a156
   219             exe = x;
   219             exe = x;
   220         } /* if */
   220         } /* if */
   221 
   221 
   222         /* build full binary path... */
   222         /* build full binary path... */
   223         strcpy(exe, start);
   223         strcpy(exe, start);
   224         if (exe[strlen(exe) - 1] != '/')
   224         if ((exe[0] == '\0') || (exe[strlen(exe) - 1] != '/'))
   225             strcat(exe, "/");
   225             strcat(exe, "/");
   226         strcat(exe, bin);
   226         strcat(exe, bin);
   227 
   227 
   228         if (access(exe, X_OK) == 0)  /* Exists as executable? We're done. */
   228         if (access(exe, X_OK) == 0)  /* Exists as executable? We're done. */
   229         {
   229         {