[linux-cifs-client] POSIX pathnames and the '\' character.
simo
idra at samba.org
Fri Mar 9 19:33:27 GMT 2007
On Fri, 2007-03-09 at 11:25 -0800, Jeremy Allison wrote:
> Currently the Samba server parsing code
> treats '\\' as a directory separator even
> when posix pathnames is set to true.
>
> This means currently that we're not 100%
> POSIX as '\\' is valid in a POSIX pathname,
> the only banned characters are '/' and '\0'.
>
> How much of a problem is this ? And how
> much effort (if any) should I put into
> fixing this ?
>
> This includes all currently released
> servers up to 3.0.24 that support the
> POSIX pathnames extension.
>
> The issue becomes a problem with DFS
> pathnames, which are defined are :
>
> \server\share\<pathname>.
>
> '\\' is mandatory as a separator in the
> first 2 path components. Do we want to
> enforce a DFS name as :
>
> \server\share\path/is/now/posix,
>
> or as :
>
> \server\share/path/is/now/posix,
>
> or can we live with '\\' always being
> a directory separator ?
Think about a samba server with home directories of this kind (very
possible if you use winbindd):
/home/DOMAIN1\user1
/home/DOMAIN1\user2
/home/DOMAIN2\userX1
/home/DOMAIN2\userX2
Simo.
--
Simo Sorce
Samba Team GPL Compliance Officer
email: idra at samba.org
http://samba.org
More information about the linux-cifs-client
mailing list