mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-11 00:51:05 +02:00
Timothy Redaelli: file name manipulations
in history can return NULL if HAVE_CANONICALIZE_FILE_NAME
This commit is contained in:
parent
a84560cbf2
commit
fe7337447c
2 changed files with 11 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2012-02-08 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
|
* : Timothy Redaelli: 30187: Src/hist.c: file name manipulations
|
||||||
|
in history can return NULL if HAVE_CANONICALIZE_FILE_NAME.
|
||||||
|
|
||||||
2012-02-07 Peter Stephenson <pws@csr.com>
|
2012-02-07 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
* Holger Macht via Ismail: 30185: Src/Zle/complete.mdd: add
|
* Holger Macht via Ismail: 30185: Src/Zle/complete.mdd: add
|
||||||
|
@ -15918,5 +15923,5 @@
|
||||||
|
|
||||||
*****************************************************
|
*****************************************************
|
||||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||||
* $Revision: 1.5574 $
|
* $Revision: 1.5575 $
|
||||||
*****************************************************
|
*****************************************************
|
||||||
|
|
|
@ -1664,6 +1664,11 @@ chrealpath(char **junkptr)
|
||||||
errno == ENAMETOOLONG || errno == ENOMEM)
|
errno == ENAMETOOLONG || errno == ENOMEM)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
#ifdef HAVE_CANONICALIZE_FILE_NAME
|
||||||
|
if (!real)
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (nonreal == *junkptr) {
|
if (nonreal == *junkptr) {
|
||||||
*real = '\0';
|
*real = '\0';
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue