From ripley at stats.ox.ac.uk  Thu Aug 16 18:37:02 2012
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Thu, 16 Aug 2012 17:37:02 +0100
Subject: [Rd] chown, chgrp?
In-Reply-To: <8AF89154-2B1E-4D57-B8E6-BDF855939CD3@gmail.com>
References: <5030f2bade32483bb1b6d34284a54dc9@EX-1-HT0.lancs.local>
	<CANVKczNxodiW2YUiebV4w=KWMXBSEN22OkF1N5_mXASX-WDqMg@mail.gmail.com>
	<415bee7f03374ec289c9ccb6c354aa7c@EX-1-HT0.lancs.local>
	<CANVKczMzNRif2xU2KtsPHFe7hzRrS6QX+rAYL+6KmMv14Yw0jQ@mail.gmail.com>
	<8AF89154-2B1E-4D57-B8E6-BDF855939CD3@gmail.com>
Message-ID: <502D21AE.9030406@stats.ox.ac.uk>

On 15/08/2012 18:38, peter dalgaard wrote:
>
> On Aug 15, 2012, at 17:56 , Barry Rowlingson wrote:
>
>> On Wed, Aug 15, 2012 at 2:47 PM, Simon Urbanek
>> <simon.urbanek at r-project.org> wrote:
>>
>>>
>>> ... and moreover with the increasing adoption of ACL on unix and non-existence of uid/gid on Windows this is more an archaic curiosity so I don't think it makes sense to add it at this point.
>>>
>>
>> It does however raise the question, "What is Hadley up to now?" :)
>
> Aiming for the fortune file again, Barry?
>
> Anyways, since it is not portable anyway, what was ever wrong with
>
> system(sprintf("chown %s %s", foo, bar)
>
> ?

Yes, that is the point. I added Sys.chmod because R's own scripts needed 
something portable (both to Windows, and later in the handling of umask 
where POSIX allows some wiggle room).  We've never needed chown/chgrp.


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] chown, chgrp?
Prof Brian Ripley