Re: mdsl source & another metadata question
Re: mdsl source & another metadata question
- Subject: Re: mdsl source & another metadata question
- From: Jeffrey Ellis <email@hidden>
- Date: Tue, 15 Aug 2006 17:05:45 -0700
- Thread-topic: mdsl source & another metadata question
> His output looks like Linux output. You can get something simillar in OSX
> using the -x switch, i.e. "stat -x ls" and "stat -xL ls". Note you still
> only see "ls" and never "/bin/ls" in OSX but you are told different inode
> numbers and the file type is "Regular File" and "Symbolic Link" in the
> other.
>
> Best regards,
>
> Anton
>
>> $ ln -s /bin/ls .
>> $ stat ls
>> 234881059 923574 lrwxr-xr-x 1 jeffrey jeffrey 0 7 "Aug 14 13:52:58 2006"
>> "Aug 14 13:52:58 2006" "Aug 14 13:52:58 2006" 4096 8 0 ls
>> $ stat -L ls
>> 234881059 612750 -r-xr-xr-x 1 root wheel 0 32460 "Aug 10 14:57:01 2006" "Mar
>> 21 14:49:19 2005" "Jun 26 03:33:30 2006" 4096 64 0 ls
>>
>> What am I doing wrong?
>>
>> All My Best,
>> Jeffrey
> You're not doing anything wrong. As you can see, you are the owner of
> the symlink whereas root is the owner of the actual binary.
>
> --
> Steve Checkoway
Thanks to you both. I think I was actually asking about the more readable
form of the output.
Apparently the issue here is that, as I read it, the symlink can have a
different ownership than the original file. Hence the need to faithfully
reproduce the ownership of the symlink file specifically.
All My Best,
Jeffrey
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden