[Lazarus] fpchmod illegal character "&"
David Touzeau
david at touzeau.eu
Wed Oct 14 14:07:14 CEST 2009
Hum
so i can convert 775 or 666 chmod number privilege to an octal
parameter in order to avoid this illegal character error
I'm dev in Unix (linux)
-------- Message initial --------
De: Vincent Snijders <vsnijders at vodafonevast.nl>
Reply-to: Lazarus mailing list <lazarus at lists.lazarus.freepascal.org>
À: Lazarus mailing list <lazarus at lists.lazarus.freepascal.org>
Sujet: Re: [Lazarus] fpchmod illegal character "&"
Date: Wed, 14 Oct 2009 13:52:59 +0200
Bart schreef:
> Hi David,
>
> Look at the function definition:
>
> Function FpChmod (path : AnsiString; Mode : TMode): cInt; inline;
>
> The second parameter must be of type TMode, so you cannot use a "&" in it.
>
> What does "&"755 do if you run chmode from terminal?
> (What is the meaning of the ampersand in front of the 755 in this case?)
& means an octal number.
&777 seems a valid octal number and is used in this fpChmod example:
http://www.freepascal.org/docs-html/rtl/baseunix/fpchmod.html
Vincent
--
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20091014/bf339b2c/attachment-0004.html>
More information about the Lazarus
mailing list