]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Enhance the safety of the -U option:
authordougb <dougb@FreeBSD.org>
Sat, 16 May 2009 22:22:31 +0000 (22:22 +0000)
committerdougb <dougb@FreeBSD.org>
Sat, 16 May 2009 22:22:31 +0000 (22:22 +0000)
commit7135ece058c80766190374796cb7da40f26ce700
tree728664948500a761bca49e1ca2520f4714f25915
parent15eeed7d62b94d461b2afcaf468ab6697264db18
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