HomeFreeBSD

etcupdate: fix arguments order of diff command

Description

etcupdate: fix arguments order of diff command

Due to misplacement of the second -L argument of diff command, it is
treated by getopt_long as an error.

Also add -l option for a diff command that alters the way it shows
differences. Instead of printing full diff, it reports changed file
the same way as added/removed files are reported.

Reviewed by: imp
Obtained from: Yandex LLC
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D56708

Details

Provenance
lytboris_gmail.comAuthored on Apr 30 2026, 11:31 AM
aeCommitted on Apr 30 2026, 11:31 AM
Reviewer
imp
Differential Revision
D56708: Fix etcupdate diff with POSIXLY_CORRECT set, add option to list changes files
Parents
rG226b37dc3ad5: dev/ichsmb: disable block buffer if supported
Branches
Unknown
Tags
Unknown