Fix a bug with undo -d. Sometimes the filesystem returns a duplicate TID
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 10 Jan 2009 01:17:03 +0000 (17:17 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 10 Jan 2009 01:17:03 +0000 (17:17 -0800)
commit92c7f4e9aba89414a372c6c04a90400a74c0b0a5
tree31e04fb7a35055d65a07fe8e577a6b712c26c728
parent841b269093cdf8386983a125ddb80906cafbcad2
Fix a bug with undo -d.  Sometimes the filesystem returns a duplicate TID
causing undo -d to choose the wrong TID.  It now searches backwards looking
for the second-to-last TID to diff against, ignoring any dups.

Reported-by: "Brad Frank" <brad.frank@gmail.com>
usr.bin/undo/undo.c