summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ls.c b/src/ls.c
index 7c22b66fd..382253484 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -2341,7 +2341,7 @@ known_term_type (void)
{
if (STRNCMP_LIT (line, "TERM ") == 0)
{
- if (STREQ (term, line + 5))
+ if (fnmatch (line + 5, term, 0) == 0)
return true;
}
line += strlen (line) + 1;