Patch: Convert SMB_VFS_REALPATH to returning an NTSTATUS

Richard Sharpe realrichardsharpe at gmail.com
Tue Apr 7 18:27:05 MDT 2015


Hi folks,

Attached is a patch for discussion.

On several occasions now I have wanted to return
NT_STATUS_PATH_NOT_COVERED from VFS functions like SMB_VFS_REALPATH
and SMB_VFS_STAT because these are called really early in the
processing of requests to do with file.

The alternative is to do something like:

    #define EPATHNOTCOVERED 1000

and then add a mapping to the error mapping functions, which is fuggly.

This seems like a better approach.

Comments welcome.

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Convert-the-REALPATH-VFS-to-returning-an-NTSTATUS.-T.patch
Type: text/x-patch
Size: 19966 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150407/9e34fb2e/attachment.bin>


More information about the samba-technical mailing list