1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

smbd: consolidate comments in unix_convert()

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2020-03-25 07:53:29 +01:00 committed by Jeremy Allison
parent 63cbc330ea
commit c77530a04f

View File

@ -407,6 +407,11 @@ streams etc.
We assume that we have already done a chdir() to the right "root" directory
for this service.
Conversion to basic unix format is already done in check_path_syntax().
Names must be relative to the root of the service - any leading /. and
trailing /'s should have been trimmed by check_path_syntax().
The function will return an NTSTATUS error if some part of the name except for
the last part cannot be resolved, else NT_STATUS_OK.
@ -473,16 +478,6 @@ NTSTATUS unix_convert(TALLOC_CTX *ctx,
DEBUG(5, ("unix_convert called on file \"%s\"\n", orig_path));
/*
* Conversion to basic unix format is already done in
* check_path_syntax().
*/
/*
* Names must be relative to the root of the service - any leading /.
* and trailing /'s should have been trimmed by check_path_syntax().
*/
#ifdef DEVELOPER
SMB_ASSERT(*orig_path != '/');
#endif