vfs_preopen: introduce helper variables in preopen_parse_fname()
authorStefan Metzmacher <metze@samba.org>
Fri, 11 Jun 2021 21:08:19 +0000 (21:08 +0000)
committerStefan Metzmacher <metze@samba.org>
Thu, 1 Jul 2021 13:02:31 +0000 (13:02 +0000)
commit1197c87c916bc947d8143a57e59e9b36aaba309c
tree7d74ff08f6b3e9b24d52a04b9c50fd65b72b5ef3
parent0900ab40d6de6b6d878b6a48cb3df464d536d91b
vfs_preopen: introduce helper variables in preopen_parse_fname()

Calculating the start_idx and num_digits at the first possible place
will make the following commits much easier.

At the end we just want to assign the return values without any logic.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_preopen.c