which: fix whitespace

This commit is contained in:
Pieter Kockx 2017-10-12 00:17:26 +02:00 committed by Michael Forney
parent 6eec2eb3b4
commit d15f49e715

View File

@ -29,8 +29,8 @@ which(const char *path, const char *name)
ptr[i] = '\0';
if ((dirfd = open(p, O_RDONLY, 0)) >= 0) {
if (!fstatat(dirfd, name, &st, 0) &&
S_ISREG(st.st_mode) &&
!faccessat(dirfd, name, X_OK, 0)) {
S_ISREG(st.st_mode) &&
!faccessat(dirfd, name, X_OK, 0)) {
found = 1;
fputs(p, stdout);
if (i && ptr[i - 1] != '/')