opnsense-src/usr.bin/xinstall
Ed Maste 4b04f5d7e8 install: Fix METALOG ouptut for numeric -o and -g args
install's -o and -g flags both accept a name or a numeric argument.
In -U -M (non-root METALOG) mode it always emitted uname= and gname= in
the METALOG, but these are not appropriate for numeric IDs.

If the -o and/or -u arguments parse as an ID, emit uid= and/or gid=
respectively.

Note that if an argument is valid as both a name and numeric ID we will
prefer the name in normal (non -U -M) mode and the ID in -U -M mode.  We
don't want to require a passwd db in non-root mode, and entirely-numeric
user or group names are a terrible idea so just accept this discrepancy.

PR:		284119
Reviewed by:	jlduran
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48504
2025-01-21 07:47:48 -05:00
..
tests install: print directory name instead of file name if mkstemp fails 2024-11-29 14:38:36 -07:00
install.1 install: Remove the mmap(2) option. 2024-04-17 04:03:31 +02:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
xinstall.c install: Fix METALOG ouptut for numeric -o and -g args 2025-01-21 07:47:48 -05:00