X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Frtapelib.c;h=6bbcbd9e1f4944cfd83d3721a14425de2882fa19;hb=6600451136831cb42ddf08938dc9ead04e3ea723;hp=937fd70c605c862feb06ed20f4d856c37a4cb4f3;hpb=d46735235be2b3bcaf2e580d86f321130cd78e94;p=chaz%2Ftar 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