This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: as one gets roots - rights ...


On Thu, 2002-07-25 at 22:41, Norbert Pfeiffer wrote:
> Hi Max,
> 
> thanks, goes naturally also.
> This is IMHO a very quick and dirty hack,
> because it is valid only for this problem.

Actually, most unix based code that blindly requires root rights to
perform operations is broken. Such code won't run correctly in an
environment with capabilities, or granular permissions, or other similar
behaviour.

Adding cygwin specific tests is one approach, but still flawed. IMO the
correct approach is to test to see whether the action can be completed,
and if it can not be, croak at that point, rather than assuming some
arbitrary external condition ust be true before trying.

Anyway, just my 43c :}.

Rob


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]