diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-01-24 11:02:59 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-01-24 11:02:59 +0000 |
commit | b80c6b0863127da4511abf2ebb1f9328db5730aa (patch) | |
tree | c9340de0ddd16cbec6ab83c97057252ca7cd9930 /Src | |
parent | 95a65e158169d61d9257ed6859bfc7527a9e0468 (diff) | |
download | zsh-b80c6b0863127da4511abf2ebb1f9328db5730aa.tar.gz zsh-b80c6b0863127da4511abf2ebb1f9328db5730aa.tar.xz zsh-b80c6b0863127da4511abf2ebb1f9328db5730aa.zip |
users/8422: [[ ... -nt ... ]] with bad stat caused
mayhem in initialisation files, functions, etc.
Diffstat (limited to 'Src')
-rw-r--r-- | Src/cond.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/cond.c b/Src/cond.c index a720ec69a..aa808715f 100644 --- a/Src/cond.c +++ b/Src/cond.c @@ -336,7 +336,7 @@ evalcond(Estate state, char *fromtest) return 1; a = st->st_mtime; if (!(st = getstat(right))) - return 2; + return 1; return !((ctype == COND_NT) ? a > st->st_mtime : a < st->st_mtime); } case COND_EF: |