]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
Fix typo in access of shell command 190/head
authorMichael Vetter <jubalh@iodoru.org>
Tue, 12 Nov 2019 07:38:08 +0000 (08:38 +0100)
committerMichael Vetter <jubalh@iodoru.org>
Tue, 12 Nov 2019 07:38:08 +0000 (08:38 +0100)
Fix typo in 88fa0651bfa4be0c819da0027456f5046a3b4967.
For some reason my git push -f seems not to have worked.

src/useradd.c

index 5528054917b5b6fa8c06007af4d1455f6640db16..4af0f7c690297306e73a6b5bb1bd46e90fb48663 100644 (file)
@@ -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);