[fpc-pascal] [SYSTEM]: How detecting if run as root ?
TOUZEAU DAVID
david.touzeau at fr.kaspersky.com
Thu Oct 12 11:54:02 CEST 2006
Many thanks i found the function GetEUID i'll try it
http://www.cs.uwc.ac.za/~firstyear/manuals/doc/units/unitsse36.html#x53-41900012.3
Pete Cervasio a écrit :
> On Wednesday 11 October 2006 20:44, Michalis Kamburelis wrote:
>
>> Pete Cervasio wrote:
>>
>>> The better way would be to use the geteuid function in the libc unit,
>>>
>> It would be even better to use FpGetEUid function from the BaseUnix
>> unit. See
>> [http://www.freepascal.org/docs-html/rtl/baseunix/fpgeteuid.html].
>>
>
> DOH! Thanks for reminding me, Michalis. I always forget about seeing if a
> function is already in the RTL when doing things that I know are standard C
> library functions. Force of habit is my (bad) excuse. :)
>
> Best regards,
> Pete C.
>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
>
--
David Touzeau -------------------------- Linux Ubuntu Dapper 6.0.6
FreePascal-Lazarus,perl,delphi,php icq:160018849
More information about the fpc-pascal
mailing list