[linux-cifs-client] POSIX pathnames and the '\' character.

Jeremy Allison jra at samba.org
Fri Mar 9 19:25:05 GMT 2007


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 ?

Jeremy.


More information about the linux-cifs-client mailing list