]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Enhance the safety of the -U option:
authorDoug Barton <dougb@FreeBSD.org>
Sat, 16 May 2009 22:22:31 +0000 (22:22 +0000)
committerDoug Barton <dougb@FreeBSD.org>
Sat, 16 May 2009 22:22:31 +0000 (22:22 +0000)
commit1b855ebe6c3388220b9f14e223541ed4e7689ad0
tree728664948500a761bca49e1ca2520f4714f25915
parente43c3a8bd913d07a66c00a713946f81add803641
Enhance the safety of the -U option:
1. In several places make sure that the mtree database is not empty using
the -s argument to test instead of -f. (I thought I'd already changed this,
but obviously not.)
2. When deriving the list of changed files use a colon-delimited list.
3. If the list of changed files is empty, unset the variable, and test
for a non-empty CHANGED in diff_loop() before entering that routine.

Enhance the speed of the -U option by using an internal case statement
instead of echoing the variable to an external grep for every file.

Fix indentation on one line.
usr.sbin/mergemaster/mergemaster.sh