Software: Apache/2.0.54 (Fedora). PHP/5.0.4 uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /usr/bin/X11/./../../share/doc/samba-3.0.23a/htmldocs/Samba3-Developers-Guide/ drwxr-xr-x |
Viewing file: Select action/file-type: Table of Contents Basically, the file is processed on a line by line basis. There are four types of lines that are recognized by the lexical analyzer (params.c):
The first two are handled exclusively by the lexical analyzer, which ignores them. The latter two line types are scanned for
These are the only tokens passed to the parameter loader (loadparm.c). Parameter names and values are divided from one another by an equal sign: '='. Whitespace is defined as all characters recognized by the isspace() function (see ctype(3C)) except for the newline character ('\n') The newline is excluded because it identifies the end of the line.
Long section header and parameter lines may be extended across multiple lines by use of the backslash character ('\\'). Line continuation is ignored for blank and comment lines. If the last (non-whitespace) character within a section header or on a parameter line is a backslash, then the next line will be (logically) concatonated with the current line by the lexical analyzer. For example: param name = parameter value string \ with line continuation. Would be read as param name = parameter value string with line continuation. Note that there are five spaces following the word 'string', representing the one space between 'string' and '\\' in the top line, plus the four preceeding the word 'with' in the second line. (Yes, I'm counting the indentation.) Line continuation characters are ignored on blank lines and at the end of comments. They are *only* recognized within section and parameter lines. Note the following example: param name = parameter value string \ \ with line continuation. The middle line is *not* parsed as a blank line because it is first concatonated with the top line. The result is param name = parameter value string with line continuation. The same is true for comment lines. param name = parameter value string \ ; comment \ with a comment. This becomes: param name = parameter value string ; comment with a comment. On a section header line, the closing bracket (']') is considered a terminating character, and the rest of the line is ignored. The lines [ section name ] garbage \ param name = value are read as [section name] param name = value The syntax of the smb.conf file is as follows: <file> :== { <section> } EOF <section> :== <section header> { <parameter line> } <section header> :== '[' NAME ']' <parameter line> :== NAME '=' VALUE NL Basically, this means that
|
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0031 ]-- |