summaryrefslogtreecommitdiff
path: root/src/dircolors.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-03-26 12:06:05 +0000
committerJim Meyering <jim@meyering.net>2006-03-26 12:06:05 +0000
commita1935760e5a1e2dad803256730c438b04ce50404 (patch)
treea00e3c0b32cc29ecf71f62abb5e48921725e05af /src/dircolors.c
parentc3965052fe2d222744f58e7bbd2756a9548c8740 (diff)
downloadcoreutils-a1935760e5a1e2dad803256730c438b04ce50404.tar.xz
(guess_shell_syntax): Use new last_component.
Diffstat (limited to 'src/dircolors.c')
-rw-r--r--src/dircolors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dircolors.c b/src/dircolors.c
index 7c4c33a35..7c388f06c 100644
--- a/src/dircolors.c
+++ b/src/dircolors.c
@@ -1,5 +1,5 @@
/* dircolors - output commands to set the LS_COLOR environment variable
- Copyright (C) 1996-2005 Free Software Foundation, Inc.
+ Copyright (C) 1996-2006 Free Software Foundation, Inc.
Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000 H. Peter Anvin
This program is free software; you can redistribute it and/or modify
@@ -137,7 +137,7 @@ guess_shell_syntax (void)
if (shell == NULL || *shell == '\0')
return SHELL_SYNTAX_UNKNOWN;
- shell = base_name (shell);
+ shell = last_component (shell);
if (STREQ (shell, "csh") || STREQ (shell, "tcsh"))
return SHELL_SYNTAX_C;