<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
Hum<BR>
<BR>
so i can convert 775 or 666 chmod number privilege to an octal parameter in order to avoid this illegal character error<BR>
I'm dev in Unix (linux)<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
</TD>
</TR>
</TABLE>
<BR>
-------- Message initial --------<BR>
<B>De</B>: Vincent Snijders <<A HREF="mailto:Vincent%20Snijders%20%3cvsnijders@vodafonevast.nl%3e">vsnijders@vodafonevast.nl</A>><BR>
<B>Reply-to</B>: Lazarus mailing list <lazarus@lists.lazarus.freepascal.org><BR>
<B>À</B>: Lazarus mailing list <<A HREF="mailto:Lazarus%20mailing%20list%20%3clazarus@lists.lazarus.freepascal.org%3e">lazarus@lists.lazarus.freepascal.org</A>><BR>
<B>Sujet</B>: Re: [Lazarus] fpchmod illegal character "&"<BR>
<B>Date</B>: Wed, 14 Oct 2009 13:52:59 +0200<BR>
<BR>
<PRE>
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:
<A HREF="http://www.freepascal.org/docs-html/rtl/baseunix/fpchmod.html">http://www.freepascal.org/docs-html/rtl/baseunix/fpchmod.html</A>
Vincent
--
_______________________________________________
Lazarus mailing list
<A HREF="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</A>
<A HREF="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</A>
</PRE>
</BODY>
</HTML>