mount_bsd: Fix usage of libfuse_strtol
authorVassili Tchersky <vt+git@vbcy.org>
Mon, 17 Feb 2025 07:50:19 +0000 (08:50 +0100)
committerBernd Schubert <bernd@bsbernd.com>
Tue, 18 Feb 2025 21:32:49 +0000 (22:32 +0100)
commitfa1c84d0e0a60db855aa42aab4363624c6796e70
treea58e733df8b5cba146b61e90a279b5508454d7ac
parent13cdf97c0315197b57feba073070ea6a4f834eef
mount_bsd: Fix usage of libfuse_strtol

The check on fd < 0 was recently removed. However, this check is important
as the content of FUSE_DEV_FD is passed as-is to mount_fusefs, and a string
beginning by '-' is treated as an option.

Additionally, add a proper include and type.

Signed-off-by: Vassili Tchersky <vt+git@vbcy.org>
lib/mount_bsd.c