From 8bbacf0b4fdb561b32994ec02609f5c43255af42 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 8 Jul 1999 03:45:21 +0000 Subject: [PATCH] Include basename.h, save-read.h. (rmt_open__): Use base_name to compute base name. --- src/rtapelib.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rtapelib.c b/src/rtapelib.c index 937fd70..6bbcbd9 100644 --- a/src/rtapelib.c +++ b/src/rtapelib.c @@ -32,6 +32,9 @@ #include "system.h" +#include "basename.h" +#include "safe-read.h" + /* Try hard to get EOPNOTSUPP defined. 486/ISC has it in net/errno.h, 3B2/SVR3 has it in sys/inet.h. Otherwise, like on MSDOS, use EINVAL. */ @@ -410,7 +413,7 @@ rmt_open__ (const char *path, int open_mode, int bias, const char *remote_shell) return -1; #endif } - remote_shell_basename = strrchr (remote_shell, '/'); + remote_shell_basename = base_name (remote_shell); if (remote_shell_basename) remote_shell_basename++; else -- 2.45.2