Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167528466
D56708.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D56708.id.diff
View Options
diff --git a/usr.sbin/etcupdate/etcupdate.8 b/usr.sbin/etcupdate/etcupdate.8
--- a/usr.sbin/etcupdate/etcupdate.8
+++ b/usr.sbin/etcupdate/etcupdate.8
@@ -23,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd July 15, 2024
+.Dd April 30, 2026
.Dt ETCUPDATE 8
.Os
.Sh NAME
@@ -51,6 +51,7 @@
.Ar tarball
.Nm
.Cm diff
+.Op Fl l
.Op Fl d Ar workdir
.Op Fl D Ar destdir
.Op Fl I Ar patterns
@@ -468,6 +469,10 @@
This option may be specified multiple times to specify multiple patterns.
Multiple space-separated patterns may also be specified in a single
option.
+.It Fl l
+In
+.Cm diff
+mode list files that are changed locally, omit printing content difference.
.It Fl L Ar logfile
Specify an alternate path for the log file.
The
diff --git a/usr.sbin/etcupdate/etcupdate.sh b/usr.sbin/etcupdate/etcupdate.sh
--- a/usr.sbin/etcupdate/etcupdate.sh
+++ b/usr.sbin/etcupdate/etcupdate.sh
@@ -527,9 +527,15 @@
echo
;;
$COMPARE_DIFFFILES)
+ if [ -n "$difflistonly" ]; then
+ echo
+ echo "Changed: $3"
+ echo
+ break;
+ fi
echo "Index: $3"
rule "="
- diff -u $diffargs -L "$3 ($4)" $1/$3 -L "$3 ($5)" $2/$3
+ diff -u $diffargs -L "$3 ($4)" -L "$3 ($5)" $1/$3 $2/$3
;;
esac
}
@@ -1787,11 +1793,15 @@
nobuild=
preworld=
noroot=
-while getopts "d:m:nprs:t:A:BD:FI:L:M:N" option; do
+difflistonly=
+while getopts "d:lm:nprs:t:A:BD:FI:L:M:N" option; do
case "$option" in
d)
WORKDIR=$OPTARG
;;
+ l)
+ difflistonly=YES
+ ;;
m)
MAKE_CMD=$OPTARG
;;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 23, 12:28 PM (17 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37135938
Default Alt Text
D56708.id.diff (1 KB)
Attached To
Mode
D56708: Fix etcupdate diff with POSIXLY_CORRECT set, add option to list changes files
Attached
Detach File
Event Timeline
Log In to Comment