autofs: fix basename ptr truncate to int

This commit is contained in:
Đoàn Trần Công Danh 2024-03-05 22:52:23 +07:00
parent 3dc2ebe30a
commit 296b4c9300
2 changed files with 31 additions and 1 deletions

View file

@ -0,0 +1,30 @@
--- a/daemon/master.c
+++ b/daemon/master.c
@@ -17,6 +17,7 @@
*
* ----------------------------------------------------------------------- */
+#include <libgen.h>
#include <stdlib.h>
#include <string.h>
#include <memory.h>
--- a/daemon/automount.c
+++ b/daemon/automount.c
@@ -21,6 +21,7 @@
#include <dirent.h>
#include <getopt.h>
+#include <libgen.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
--- a/modules/lookup_file.c
+++ b/modules/lookup_file.c
@@ -13,6 +13,7 @@
*
* ----------------------------------------------------------------------- */
+#include <libgen.h>
#include <stdio.h>
#include <malloc.h>
#include <stdlib.h>

View file

@ -1,7 +1,7 @@
# Template file for 'autofs'
pkgname=autofs
version=5.1.9
revision=1
revision=2
build_style=gnu-configure
make_build_args="DONTSTRIP=1"
configure_args="--with-libtirpc --with-mapdir=/etc/autofs --sbindir=/usr/bin"