summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
Diffstat (limited to 'job.c')
-rw-r--r--job.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/job.c b/job.c
index 507b90d..ef24caa 100644
--- a/job.c
+++ b/job.c
@@ -459,7 +459,7 @@ is_bourne_compatible_shell (const char *path)
len = strlen (unix_shells[i]);
#if defined(WINDOWS32) || defined(__MSDOS__)
if ((strncasecmp (name, unix_shells[i], len) == 0) &&
- (strlen (name) >= len && (name[len] == '\0' || name[len] == '.')))
+ (strlen (name) >= len && STOP_SET (name[len], MAP_DOT|MAP_NUL)))
#else
if ((strncmp (name, unix_shells[i], len) == 0) &&
(strlen (name) >= len && name[len] == '\0'))