Short version: What does msdfs.c:175 do??? Long version: If you have directories with upper-case file names in them, you will never be able to store DFS links in there, because is_msdfs_link will not find that link due to a strlower_m on the path. Volker
It's a stupid bug. I'm going to remove this line. I can't see why these names are lowercased at all. Jeremy.
Hmmm. This is much trickier to fix than it looks - involves unix_convert and also the statcache.... Jeremy.
Ok, I have a proposed patch for this (attached). Volker, can you test this ? Jeremy.
Created attachment 223 [details] Proposed DFS case patch.
Created attachment 224 [details] init localpath in resolve_dfs_path localpath in resolve_dfs_path is used uninitialized with your patch. Also apply the attached patch, and my brief test works fine. Thanks for looking at that! Volker
Volker, that fix is wrong, the correct fix is to change the pstrcat to pstrcpy below. However, this whole patch is somewhat suspect. I've been thinking about it over the weekend and I have a much simpler fix I'm testing. Jeremy.
Ok, Volker, please test this much simpler fix against current SAMBA_3_0 CVS. I'm pretty sure it's ok, so I'm inclined to commit it. Jeremy.
Created attachment 227 [details] Better patch. Better patch. I think I will commit this. Jeremy.
I've committed the patch. I think it's ok (seems to be in my testing). Jeremy.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.