From 115a4e89e2f666997f711ebac1e7b2b8534a5f6b Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 12 Nov 2019 08:38:08 +0100 Subject: [PATCH] Fix typo in access of shell command Fix typo in 88fa0651bfa4be0c819da0027456f5046a3b4967. For some reason my git push -f seems not to have worked. --- src/useradd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/useradd.c b/src/useradd.c index 55280549..4af0f7c6 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);