[hackers] [sbase] which: fix whitespace || Pieter Kockx

From: <git_AT_suckless.org>
Date: Sat, 21 Oct 2017 21:57:39 +0200 (CEST)

commit d15f49e71539eca632e9c27c78a7f8582879c060
Author: Pieter Kockx <pieterkockx_AT_gmail.com>
AuthorDate: Thu Oct 12 00:17:26 2017 +0200
Commit: Michael Forney <mforney_AT_mforney.org>
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
_AT_@ -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] != '/')
Received on Sat Oct 21 2017 - 21:57:39 CEST

This archive was generated by hypermail 2.3.0 : Sat Oct 21 2017 - 22:00:26 CEST