]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
add a comment
authorJim Meyering <jim@meyering.net>
Fri, 4 Oct 2002 11:25:09 +0000 (11:25 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 4 Oct 2002 11:25:09 +0000 (11:25 +0000)
tests/du/slink

index 05b1df7f772cf0aab0c1063f7be5f113f146c59b..36fd31ab3fbe977f83ad88114c0145f55218f4ff 100755 (executable)
@@ -24,8 +24,9 @@ fail=0
 symlink_name_lengths='1 15 16 31 32 59 60 63 64 127 128 255 256 511 512 1024'
 for len in $symlink_name_lengths; do
   name=`yes|tr '\n' y|head -c$len`
-  # Ignore failures.
-  ln -fs $name $len > /dev/null 2>&1 && symlinks="$symlinks $len"
+  # Record the names of symlinks that are successfully created.
+  ln -fs $name $len > /dev/null 2>&1 \
+    && symlinks="$symlinks $len"
 done
 
 du -a $symlinks > out || fail=1