Files
freebsd/usr.bin
Dag-Erling Smørgrav 5805e0ec88 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.

Approved by:	re (cperciva)
PR:		297681
MFC after:	1 week
Fixes:		d34870708d ("install: Allow installing stdin")
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D59144

(cherry picked from commit a5ff4125cf)
(cherry picked from commit 203438d0a3)
2026-08-27 16:27:54 -07:00
..
2026-08-06 18:26:27 -04:00
2026-01-10 13:33:13 -08:00
2026-06-02 16:42:03 +00:00
2025-02-19 21:34:42 -05:00
2026-08-06 18:26:27 -04:00
2024-12-09 13:39:21 +01:00
2025-05-19 10:29:55 +01:00
2026-02-05 19:19:32 -05:00
2026-02-18 00:18:38 +00:00
2026-04-22 08:20:53 +00:00
2023-08-16 11:55:26 -06:00
2024-12-09 13:39:21 +01:00
2025-03-23 21:40:28 -04:00
2026-07-21 17:04:28 +00:00
2026-06-19 20:25:44 -07:00
2026-08-06 18:26:27 -04:00
2023-08-16 11:55:03 -06:00
2025-01-29 18:33:13 +00:00
2026-07-25 17:16:20 +00:00
2026-04-12 08:43:35 -05:00
2025-11-04 16:29:38 +01:00
2025-08-14 14:00:09 +00:00
2025-02-19 21:34:42 -05:00
2025-02-19 21:34:42 -05:00
2026-08-18 13:17:56 -07:00
2026-06-08 23:00:53 +00:00
2023-08-17 15:08:30 +02:00
2025-05-07 14:24:11 -07:00
2026-04-02 11:47:59 +02:00
2025-05-21 17:33:09 +00:00
2025-09-23 13:06:37 +00:00
2025-07-14 12:44:44 -04:00
2023-08-16 11:55:03 -06:00
2025-02-19 21:34:42 -05:00
2025-01-29 10:51:31 +01:00
2023-08-16 11:55:03 -06:00
2024-01-21 17:08:48 +01:00
2026-08-06 18:26:27 -04:00
2024-08-01 18:15:57 +02:00
2026-06-09 08:12:23 +00:00
2024-12-28 11:17:27 -07:00
2026-08-05 12:06:42 -04:00
2025-01-15 10:55:01 +01:00
2023-08-16 11:55:03 -06:00
2026-05-28 10:02:52 +02:00
…
2025-08-05 09:30:01 +00:00
2023-08-16 11:55:03 -06:00
2025-05-07 14:24:11 -07:00
2025-05-07 14:24:11 -07:00