From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 14 Aug 1995 15:53:10 -0400 From: howard@plan9.att.com howard@plan9.att.com Subject: Bug found in ape's rename() function Topicbox-Message-UUID: 1625ebee-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19950814195310.ztBK-tNQ7BQDMYUPLwKO7jWt92yQSvlDHhqzaG9Pnbg@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) Sorry about that. Thanks for the fix.