commit d15f49e71539eca632e9c27c78a7f8582879c060
Author: Pieter Kockx <[email protected]>
AuthorDate: Thu Oct 12 00:17:26 2017 +0200
Commit: Michael Forney <[email protected]>
CommitDate: Sat Oct 21 12:44:09 2017 -0700
which: fix whitespace
diff --git a/which.c b/which.c
index 1975710..ce312ae 100644
--- a/which.c
+++ b/which.c
@@ -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] != '/')