diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Src/hashtable.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 87781da59..5334df940 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-11-01 Oliver Kiddle <opk@zsh.org> + * 24048: Src/hashtable.c: fix home directory expansion with + NIS on Solaris + * Frank Benkstein: 24047: Completion/compinit: fix compdef with more than three commands using the same service diff --git a/Src/hashtable.c b/Src/hashtable.c index d820c4fd4..160cda506 100644 --- a/Src/hashtable.c +++ b/Src/hashtable.c @@ -1258,7 +1258,8 @@ add_userdir(int status, char *key, int keylen, char *val, int vallen, char *dumm if (vallen > keylen && *(p = val + keylen) == ':') { *p++ = '\0'; - if ((de = strrchr(p, ':'))) { + for (de = val + vallen - 1; *de != ':' && de > val; de--); + if (de > val) { *de = '\0'; if ((d = strrchr(p, ':'))) { if (*++d && val[0]) |