GNU bug report logs - #75685
mv/sticky-to-xpart.sh test fails on OpenBSD

Previous Next

Package: coreutils;

Reported by: Bruno Haible <bruno <at> clisp.org>

Date: Mon, 20 Jan 2025 09:31:02 UTC

Severity: normal

To reply to this bug, email your comments to 75685 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#75685; Package coreutils. (Mon, 20 Jan 2025 09:31:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bruno Haible <bruno <at> clisp.org>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Mon, 20 Jan 2025 09:31:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Bruno Haible <bruno <at> clisp.org>
To: bug-coreutils <at> gnu.org
Subject: mv/sticky-to-xpart.sh test fails on OpenBSD
Date: Mon, 20 Jan 2025 10:29:52 +0100
Building coreutils (git master) on OpenBSD 7.5 as 'root',
I see this test failure. It's not easy to reproduce; one needs
  - to build as root,
  - be on a system that has more than disk partition.


FAIL: tests/mv/sticky-to-xpart
==============================

using SHELL=/bin/sh with 'set -x' corrupts stderr
mv (GNU coreutils) 2025-01-20
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Parker, David MacKenzie, and Jim Meyering.
  chroot --skip-chdir --user=$NON_ROOT_USERNAME / env PATH="$PATH" \
chroot --skip-chdir --user=$NON_ROOT_USERNAME / env PATH="$PATH" \
+ mkdir t
+ chmod a=rwx,o+t t
+ echo
+ > t/root-owned 
+ chmod a+r t/root-owned
+ chown nobody /tmp/tmp282
+ chmod go+x .
+ chroot --skip-chdir --user=nobody / env PATH=/home/runner/work/ci-check/ci-check/coreutils-2025-01-20/build/./src:/home/runner/work/ci-check/ci-check/coreutils-2025-01-20/build/src:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin mv --version
+ sed -n 1s/.* //p
+ version=2025-01-20
+ chroot --skip-chdir --user=nobody / env PATH=/home/runner/work/ci-check/ci-check/coreutils-2025-01-20/build/./src:/home/runner/work/ci-check/ci-check/coreutils-2025-01-20/build/src:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin mv t/root-owned /tmp/tmp282
+ 2> out-t 
+ onp=Operation not permitted
+ sed s/Not owner/Operation not permitted/;s/Permission denied/Operation not permitted/ out-t
+ > out 
+ cat
+ << \EOF 
+ > exp 
+ compare exp out
--- exp	Mon Jan 20 07:01:44 2025
+++ out	Mon Jan 20 07:01:44 2025
@@ -1 +1 @@
-mv: cannot remove 't/root-owned': Operation not permitted
+mv: cannot move 't/root-owned' to '/tmp/tmp282/root-owned': Operation not permitted
+ fail=1
+ Exit 1
FAIL tests/mv/sticky-to-xpart.sh (exit status: 1)







This bug report was last modified 17 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.