Acincy.1017 net.bugs.2bsd utzoo!decvax!ucbvax!mhtsa!ihnss!harpo!eagle!mhuxt!cbosg!cincy!root Mon Apr 19 23:11:13 1982 Bug in diff The following bug is in the 2.8BSD diff: When a diff -r is done, the directories are sorted by qsort before comparisons are done. The second argument to qsort is a long (because st_size is long,) but qsort wants an int. The arguments get screwed up and the sort never happens... The fix is as follows: diff diffdir.c diffdir.old 198c198 qsort(dp, stb.st_size / sizeof (struct direct), Jim Reuter ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen of http://communication.ucsd.edu/A-News/ This Usenet Oldnews Archive article may be copied and distributed freely, provided: 1. There is no money collected for the text(s) of the articles. 2. The following notice remains appended to each copy: The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.