From 1c028ca33dc059a9d8f18daafcd77b5950268f41 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Fri, 8 Apr 2016 18:25:59 -0500 Subject: Redefining basename_r to mean something random seems popular (bionic and freebsd both did it) so use getbasename instead. --- toys/pending/modprobe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/pending/modprobe.c') diff --git a/toys/pending/modprobe.c b/toys/pending/modprobe.c index 6813dec3..7a35c186 100644 --- a/toys/pending/modprobe.c +++ b/toys/pending/modprobe.c @@ -70,7 +70,7 @@ static char *path2mod(char *file, char *mod) if (!file) return NULL; if (!mod) mod = xmalloc(MODNAME_LEN); - from = basename_r(file); + from = getbasename(file); for (i = 0; i < (MODNAME_LEN-1) && from[i] && from[i] != '.'; i++) mod[i] = (from[i] == '-') ? '_' : from[i]; -- cgit v1.2.3