[Samba] How do I get a literal '%' in smb.conf
Michael J. Wetmore
MJW at peirce.com
Wed Jun 8 15:25:53 GMT 2005
%prt -> rt (%p expands to nothing because whatever it is supposed to go to is empty on this system)
%%prt -> %%prt (extra % must suppress expansion)
%%pprt -> %%pprt (see above - if expansion was not suppressed this should work in my case, with %p empty)
(1)It looks like %% is supposed to work, expansion is supressed but one of the '%' should be dropped.
(2)Version 2.2.0 of samba does not allow a symlink in a path statement of a share - earlier versions did.
If (1) is a bug, has it been fixed in later versions?
From: Jörn Nettingsmeier [mailto:pol-admin at uni-duisburg.de]
Sent: Wednesday, June 08, 2005 10:28 AM
To: Michael J. Wetmore
Cc: samba at lists.samba.org
Subject: Re: [Samba] How do I get a literal '%' in smb.conf
Michael J. Wetmore wrote:
> I have tried 'path = /FIX010/%%prt' and 'path = /FIX010/\%prt' and
> also including a file with the path statement. That %p keeps getting
> expanded. (%p is empty).
hmm. *if* samba uses the same semantics as c format strings, then "%%"
should yield a single per-cent sign. but i can't test atm, and you might want to try it yourself on a test box before hosing your production system....
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
More information about the samba