9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: howard@plan9.att.com howard@plan9.att.com
Subject: Bug found in ape's rename() function
Date: Mon, 14 Aug 1995 15:53:10 -0400	[thread overview]
Message-ID: <19950814195310.ztBK-tNQ7BQDMYUPLwKO7jWt92yQSvlDHhqzaG9Pnbg@z> (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.






             reply	other threads:[~1995-08-14 19:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-08-14 19:53 howard [this message]
  -- strict thread matches above, loose matches on Subject: below --
1995-08-12 17:04 dhog

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19950814195310.ztBK-tNQ7BQDMYUPLwKO7jWt92yQSvlDHhqzaG9Pnbg@z \
    --to=howard@plan9.att.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).