Subject: Re: bug#77640: [platform-testers] new snapshot available: gzip-1.13.56-e549

From: Paul Eggert <[email-masked]>
Date: Tue, 8 Apr 2025 10:51:50 -0700

On 2025-04-08 06:07, Nelson H. F. Beebe wrote:
> + mkdir d
> + echo
> + chmod a-w d
> + test -w d
> + id -u
> + test 887 '=' 0
> + returns_ 1 gzip d/f
> + fail=1

To help debug this problem on DragonFlyBSD 6.4.0, please run the 
following commands in the gzip source directory and tell us what the 
./gzip does:

   mkdir d
   echo >d/f
   chmod a-w d
   ./gzip d/f

Also, does the following patch work around the problem?

diff --git a/tests/write-error b/tests/write-error
index a68043a..8556b28 100755
--- a/tests/write-error
+++ b/tests/write-error
@@ -24,7 +24,7 @@ fail=0
  mkdir d || framework_failure_
  echo > d/f || framework_failure_
  chmod a-w d || framework_failure_
-if test -w d || test `id -u` = 0; then
+if echo > d/e; then
    echo >&2 "$0: being root, skipping this test"
    fail=77
  else