[PATCH] Change VFS opendir paths to take struct smb_filename *

Jeremy Allison jra at samba.org
Sat Feb 27 06:06:34 UTC 2016


Here is a 5-patch set that does the following:

1). VFS: Modify opendir to take a const struct smb_filename *
instead of const char *
2). Changes internal struct smb_Dir to store struct smb_filename *
instead of const char *
3). Fixes OpenDir() function to take a const struct smb_filename *
instead of const char *
4). Cleanup use of talloc ctx inside call_trans2findfirst() (makes
subsequent patch cleaner).
5). Fix dptr_create() to take a const struct smb_filename *
instead of const char *.

Passes local make test.

I know it's a slightly larger change than just
modifying the VFS, but pushing the smb_filename
changes out to the calling directory handle opening
functions makes it much clearer what this patchset
is trying to achieve.

All part of getting to the removal of lp_posix_pathnames() !

:-).

Please review and push if happy !

Jeremy.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opendir-vfs.patch
Type: text/x-diff
Size: 60695 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160226/7b83f2ad/opendir-vfs.diff>


More information about the samba-technical mailing list