From: Michael Vetter Date: Tue, 12 Nov 2019 07:38:08 +0000 (+0100) Subject: Fix typo in access of shell command X-Git-Tag: 4.8~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F190%2Fhead;p=thirdparty%2Fshadow.git Fix typo in access of shell command Fix typo in 88fa0651bfa4be0c819da0027456f5046a3b4967. For some reason my git push -f seems not to have worked. --- diff --git a/src/useradd.c b/src/useradd.c index 552805491..4af0f7c69 100644 --- a/src/useradd.c +++ b/src/useradd.c @@ -1331,7 +1331,7 @@ static void process_flags (int argc, char **argv) && ('*' != optarg[0]) ) || (stat(optarg, &st) != 0) || (S_ISDIR(st.st_mode)) - || (access(optarg, X_OK != 0))) { + || (access(optarg, X_OK) != 0)) { fprintf (stderr, _("%s: invalid shell '%s'\n"), Prog, optarg);