1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00
Jeremy Allison c96d487ae3 Make us pass RAW-CHKPATH with a case sensitive share.
I know Volker will look at this closely so here's the explaination :-).
Originally on a case-sensitive share we simply did a stat (or lstat)
call and returned success of fail based on the result. However this
failed to take account of incoming paths with a wildcard (which must
always fail, and with different error messages depending on whether
the wildcard is the last component or in the path). Also it failed
to take account of a stat fail with ENOENT due to a missing component
of the path as the last component (which is ok as it could be a new
file)  or if the ENOENT was due to the missing component within
the path (not the last component) - which must return the correct
error. What this means is that with "case sensitive = yes" we do
one more talloc call (to get the parent directory) and one more
stat call (on the parent directory) in the case where the stat
call fails. I think this is an acceptable overhead to enable
case sensitive shares to return the correct error messages for
applications. Volker please examine carefully :-).
Jeremy.
2009-11-25 13:17:56 -08:00
..
2009-11-03 11:30:00 +01:00
2008-10-13 20:59:33 +02:00
2009-11-03 11:30:00 +01:00
2009-10-07 15:43:43 -07:00
2009-05-14 16:49:18 -07:00
2009-11-03 11:30:00 +01:00
2009-11-03 11:30:00 +01:00
2009-09-17 01:12:20 +02:00
2009-10-01 10:23:29 -07:00
2009-09-17 01:12:20 +02:00