Masato Taruishi
taru****@users*****
2004年 10月 30日 (土) 14:36:32 JST
=================================================================== RCS file: utils/misc/ldifdiff/ldifdiff,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- utils/misc/ldifdiff/ldifdiff 2004/10/30 00:11:21 1.7 +++ utils/misc/ldifdiff/ldifdiff 2004/10/30 05:36:32 1.8 @@ -190,14 +190,14 @@ close $oldin; close $newin; -foreach ( sort { length($a) < length($b); } keys %oldentry ) { +foreach ( sort { length($b) <=> length($a); } keys %oldentry ) { debug "delete: $_\n"; print "dn: $_\n"; print "changetype: delete\n"; print "\n"; } -foreach ( sort { length($a) > length($b); } keys %newentry ) { +foreach ( sort { length($a) <=> length($b); } keys %newentry ) { debug "add: $_\n"; print "dn: $_\n"; print "changetype: add\n";