From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 12 Aug 1995 13:04:16 -0400 From: dhog@plan9.cs.su.oz.au dhog@plan9.cs.su.oz.au Subject: Bug found in ape's rename() function Topicbox-Message-UUID: 161862ee-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19950812170416.wP6BuvEaD86fDY2zQ1s9NNkSmIhIaw99N48swoP-EQw@z> If you use ape's rename() function, and the files aren't in the same directory, it corrupts the file. Here is a fix: diff /sys/src/ape/lib/ap/plan9/rename.c new 63c63 < while(n>=0 && (n = _READ(ffd, buf, 8192) > 0)) --- > while(n>=0 && (n = _READ(ffd, buf, 8192)) > 0)