From eb783754bdb74377f3cea4ceca9c23a02ea1bf58 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 13 Jun 2017 15:41:00 +0100 Subject: 41284: Fix NULL dereference in cd. This happened in sh compatiblity mode if HOME was not set and cd was used with no argument. --- Test/B01cd.ztst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Test') diff --git a/Test/B01cd.ztst b/Test/B01cd.ztst index 94447e717..8d4f0955c 100644 --- a/Test/B01cd.ztst +++ b/Test/B01cd.ztst @@ -137,6 +137,10 @@ F:something is broken. But you already knew that. 0: ?(eval):cd:3: not a directory: link_to_nonexistent + (unset HOME; ARGV0=sh $ZTST_testdir/../Src/zsh -c cd) +1:Implicit cd with unset HOME. +?zsh:cd:1: HOME not set + %clean # This optional section cleans up after the test, if necessary, # e.g. killing processes etc. This is in addition to the removal of *.tmp -- cgit 1.4.1