• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: testing exchangedata
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: testing exchangedata


  • Subject: Re: testing exchangedata
  • From: Derrick Bass <email@hidden>
  • Date: Tue, 4 Oct 2005 07:14:43 -0700

I don't have an answer for you, but I'd like to encourage you to file a bug report about this. I filed one over a year ago for the same thing and nothing has been done. It seems to be the consensus that the more people file a bug report, the more likely Apple is to fix the problem.

It is arguable as to whether or not exchangedata() should work with hard-linked files (I think it should) and exactly what it should it do, but the fact that it fails if a file was EVER hard linked (even if it is no longer hard linked) is definitely a bug!

Derrick

Is there a way to test the validity of the arguments of exchangedata()
without actually calling it?

The equivalent of:

touch dummypath;
int a = exchangedata( path1, dummypath, 0);
exchangedata( dummypath, path1, 0);

What I really want to find out is, whether path1 is a hard link (in
which case exchangedata sets errno to EINVAL).

Please note that the link count does not help in this case, as HFS(+)
can have hard links with a link count of 1.

The reason I want to know about hard links is that NSDocument will not
do a "save" in this case (as it uses exchangedata internally in
writeWithBackupToFile:ofType:saveOperation: or in its Tiger
equivalent).

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: testing exchangedata
      • From: glenn andreas <email@hidden>
  • Prev by Date: Re: Debugging Stdout
  • Next by Date: Changing hard linked data
  • Previous by thread: testing exchangedata
  • Next by thread: Re: testing exchangedata
  • Index(es):
    • Date
    • Thread