[Bug 297681] usr.bin/xinstall/install_test:stdin test is flaky in CI on riscv64
Date: Wed, 26 Aug 2026 17:35:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297681
--- Comment #6 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=a5ff4125cf08a83f7e67f498e423f3e354144327
commit a5ff4125cf08a83f7e67f498e423f3e354144327
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-08-26 17:34:18 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-08-26 17:34:18 +0000
install: Fix two bugs in stdin code
* Fix case where the source is - and the target exists.
* Only call chflags() (to remove flags that might prevent us from
replacing an existing target) in the exists case; otherwise,
to_sb.st_flags is uninitialized.
* Rename the source file in the stdin test case.
* Extend null and stdin test cases to cover the case where the
target already exists.
PR: 297681
MFC after: 1 week
Fixes: d34870708db9 ("install: Allow installing stdin")
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D59144
usr.bin/xinstall/tests/install_test.sh | 24 +++++++++++++++++-------
usr.bin/xinstall/xinstall.c | 6 +++---
2 files changed, 20 insertions(+), 10 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.