From 9338e5d901e68058449854ceae4e4dc6d157b001 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 25 Jun 2004 07:14:08 +0000 Subject: [PATCH] Add test for ln subscript error. --- tests/ln/misc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/ln/misc b/tests/ln/misc index 3a9d8d9bf9..cff452ba75 100755 --- a/tests/ln/misc +++ b/tests/ln/misc @@ -124,6 +124,12 @@ for cmd in ln cp mv ginstall; do test -f a.orig || fail=1 done +# =================================================== +# With coreutils-5.2.1, this would mistakenly access argv[1][-1]. +# I'm including it here, in case some day programs like valgrind detect that. +# Purify probably would have done so. +ln foo '' 2> /dev/null + # =================================================== if test $framework_failure = 1; then -- 2.47.3