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

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