Merge pull request #190 from jubalh/fixtypo

Fix typo in access of shell command
This commit is contained in:
Serge Hallyn 2019-11-12 07:12:06 -06:00 committed by GitHub
commit b462f5335f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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);