smbd: Simplify sys_proc_fd_path()
authorVolker Lendecke <vl@samba.org>
Sun, 15 Oct 2023 09:39:32 +0000 (11:39 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 1 Nov 2023 18:55:32 +0000 (18:55 +0000)
commit9f63fad392f3cff34d6a8e318e0427499170c417
treedd735916d367d2e43e928fe0a2273e8f3ee907c5
parentde20ee1adad4a6b26e07a6cf1ac89819ceaf8ecc
smbd: Simplify sys_proc_fd_path()

We know the buffer size up-front, create a struct for that. Also, I
think if we ever hit another /proc pattern this is very likely on a
different OS that could be handled by an #ifdef.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/proto.h
source3/lib/system.c
source3/modules/vfs_btrfs.c
source3/modules/vfs_default.c
source3/modules/vfs_gpfs.c
source3/modules/vfs_posixacl.c
source3/smbd/open.c