diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-03-21 18:45:35 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-03-25 23:49:02 +0000 |
commit | 47fc5fe01fa315c38335739beb6102e103a80702 (patch) | |
tree | 9bf4ec46c2ff8e225bab2448bbe07849f49606de /Test | |
parent | 12414d80523ed73a15c495b3a2f95c23ab61b2b8 (diff) | |
download | zsh-47fc5fe01fa315c38335739beb6102e103a80702.tar.gz zsh-47fc5fe01fa315c38335739beb6102e103a80702.tar.xz zsh-47fc5fe01fa315c38335739beb6102e103a80702.zip |
45583/0004: Fix segfault on resolving symlink loops
Diffstat (limited to 'Test')
-rw-r--r-- | Test/D02glob.ztst | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Test/D02glob.ztst b/Test/D02glob.ztst index 248cc7ff5..041784310 100644 --- a/Test/D02glob.ztst +++ b/Test/D02glob.ztst @@ -690,10 +690,9 @@ # This is a bit brittle as it depends on PATH_MAX. # We could use sysconf.. bad_pwd="/${(l:16000:: :):-}" - print ${bad_pwd:P} + print ${bad_pwd:P} | wc -c 0:modifier ':P' with path too long -?(eval):4: path expansion failed, using root directory ->/ +>16002 foo=a value="ac" @@ -765,7 +764,7 @@ } always { rm -f glob.tmp/trap glob.tmp/loop } --f:the ':P' modifier handles symlink loops in the last path component +0:the ':P' modifier handles symlink loops in the last path component *>*/(trap|loop) *>*/(trap|loop) @@ -777,7 +776,7 @@ } always { rm -f glob.tmp/trap glob.tmp/loop } --f:the ':P' modifier handles symlink loops before the last path component +0:the ':P' modifier handles symlink loops before the last path component *>*/glob.tmp/loop/trailing/components *>*/glob.tmp/(loop|trap)/trailing/components @@ -789,7 +788,7 @@ } always { rm -f glob.tmp/flip glob.tmp/flop } --f:the ':P' modifier handles symlink loops other than the trivial case +0:the ':P' modifier handles symlink loops other than the trivial case *>*/glob.tmp/(flip|flop) *>*/glob.tmp/(flip|flop)/trailing/components |