Changeset 24599
- Timestamp:
- 03/26/08 18:43:35 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
haiku/trunk/src/system/libroot/posix/unistd/exec.cpp
r24569 r24599 165 165 strcat(path, file); 166 166 167 // check whether it is a file 168 struct stat st; 169 if (stat(path, &st) != 0 || !S_ISREG(st.st_mode)) 170 continue; 171 167 172 // if executable, execute it 168 173 if (access(path, X_OK) == 0)
