which: fix whitespace
This commit is contained in:
parent
6eec2eb3b4
commit
d15f49e715
4
which.c
4
which.c
|
@ -29,8 +29,8 @@ which(const char *path, const char *name)
|
||||||
ptr[i] = '\0';
|
ptr[i] = '\0';
|
||||||
if ((dirfd = open(p, O_RDONLY, 0)) >= 0) {
|
if ((dirfd = open(p, O_RDONLY, 0)) >= 0) {
|
||||||
if (!fstatat(dirfd, name, &st, 0) &&
|
if (!fstatat(dirfd, name, &st, 0) &&
|
||||||
S_ISREG(st.st_mode) &&
|
S_ISREG(st.st_mode) &&
|
||||||
!faccessat(dirfd, name, X_OK, 0)) {
|
!faccessat(dirfd, name, X_OK, 0)) {
|
||||||
found = 1;
|
found = 1;
|
||||||
fputs(p, stdout);
|
fputs(p, stdout);
|
||||||
if (i && ptr[i - 1] != '/')
|
if (i && ptr[i - 1] != '/')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user