Same user IDs, two owners
Same user IDs, two owners
- Subject: Same user IDs, two owners
- From: Lorenzo Puleo <email@hidden>
- Date: Sat, 01 Feb 2003 16:37:22 +0100
Hi,
I copy a file from a machine to a different machine and my file changes
owner. !!!
I login on my PB as "a"
I login on my G4 as "b"
From my PB I connect to the machine G4 as "b" and I mount a volume.
I launch my application on the PB, I copy the file "x" from the PB to the G4
using copyPath or ditto. The copy works well.
Source file "x" on the PB:
owner: a(me)
group: staff(me)
permissions: rw-r--r--
Now if, from my PB, I ask Get Info on the file "x" just copied on the G4, I
see the same Info of the original file:
Destination file "x" on the G4:
owner: a(me)
group: staff(me)
permissions: rw-r--r--
Instead if, from my G4, I ask Get Info on the file "x" just copied on the
G4, I see that the owner is "b":
Destination file "x" on the G4:
owner: b(me) !!!
group: staff(me)
permissions: rw-r--r--
On the PB, the terminal app says that the current user "a" has the uid=501
On the G4, the terminal app says that the current user "b" has the uid=501
I can understand what happened, but, is this a right behaviour?
I suppose no. Most of all, if my application (running on the PB), trys to
set the backup date of the file "x" on the G4, it fails, and return noErr!
I used
err = FSSetCatalogInfo(&destRef, kFSCatInfoBackupDate, &theInfo);
Please note that it works well on the files located on the PB.
What should I do to fix the problem?
Regards
--
Lorenzo Puleo
mailto:email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.