mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
759416582c
This fixes a regression introduced by commit f98d10af2a05f0261611f4cabdfe274cd9fe91c0 (smbd: Always use UCF_PREP_CREATEFILE for filename_convert calls to resolve a path for open) The main problem was that Windows client seem to verify the access to user.V2\ntuser.ini is rejected with NT_STATUS_ACCESS_DENIED, using the machine credentials. Passing UCF_PREP_CREATEFILE to filename_convert() triggers a code path that implements a dropbox behaviour. A dropbox is a directory with only -wx permissions, so get_real_filename fails with EACCESS, it needs to list the directory. EACCESS is ignored with UCF_PREP_CREATEFILE. BUG: https://bugzilla.samba.org/show_bug.cgi?id=10297 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Oct 25 05:33:36 CEST 2016 on sn-devel-144