9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Bug found in ape's rename() function
@ 1995-08-12 17:04 dhog
  0 siblings, 0 replies; 2+ messages in thread
From: dhog @ 1995-08-12 17:04 UTC (permalink / raw)


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)






^ permalink raw reply	[flat|nested] 2+ messages in thread

* Bug found in ape's rename() function
@ 1995-08-14 19:53 howard
  0 siblings, 0 replies; 2+ messages in thread
From: howard @ 1995-08-14 19:53 UTC (permalink / raw)


> 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.






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-08-14 19:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-08-12 17:04 Bug found in ape's rename() function dhog
1995-08-14 19:53 howard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).