aboutsummaryrefslogtreecommitdiffstats
path: root/lib/readline
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2015-08-13 15:38:31 -0400
committerTom Powell <zifnab@zifnab06.net>2015-10-08 20:53:30 -0700
commit857afac0f64e6be71026c49215f16ba7ca5fef71 (patch)
treeebc80903f998da74eeacdf0738c571f43cdc01f3 /lib/readline
parent4d010329a43b9b008495459831a8702bbed566a6 (diff)
downloadandroid_external_bash-857afac0f64e6be71026c49215f16ba7ca5fef71.tar.gz
android_external_bash-857afac0f64e6be71026c49215f16ba7ca5fef71.tar.bz2
android_external_bash-857afac0f64e6be71026c49215f16ba7ca5fef71.zip
Bash-4.3 patch 41
Change-Id: Idb9857dac265c724460d61857c0643815d96eb9d
Diffstat (limited to 'lib/readline')
-rw-r--r--lib/readline/complete.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/readline/complete.c b/lib/readline/complete.c
index 544fc46..3956205 100644
--- a/lib/readline/complete.c
+++ b/lib/readline/complete.c
@@ -689,6 +689,8 @@ printable_part (pathname)
if (temp == 0 || *temp == '\0')
return (pathname);
+ else if (temp[1] == 0 && temp == pathname)
+ return (pathname);
/* If the basename is NULL, we might have a pathname like '/usr/src/'.
Look for a previous slash and, if one is found, return the portion
following that slash. If there's no previous slash, just return the