Re: Problems with wincfg

Bruno Jesus <[email protected]>
Newsgroups gmane.comp.emulators.wine.user
Message-ID <CALF_nUSJfqr2XReoEg8gFa7-HCKqbfDnY7ht3AJ8vBLV0jXa5g@mail.gmail.com>
On Tue, Jun 19, 2012 at 4:42 PM, Martin Gregorie <[email protected]> wrote:
> Of course, much the same applies if the value of USER is retrieved
> within a C program by calling getenv(): again, its a delayed evaluation
> that would happen after sudo has done its thing.

I'm not sure if it was already discussed or not but what about the
good and old user id checking:

if(geteuid()==0 || getuid()==0) exit(EACCESS);

Best wishes,
Bruno
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.