diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-08-12 08:15:09 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-08-12 08:15:09 +0000 |
commit | a01a10d2762e57a4dd689ed5686d1bdde6045b0d (patch) | |
tree | 8b4ccabadc149017a1009067a4106e4b16b70502 | |
parent | 50fa90af9706a531c4cb63bb03155e19f9dc4d5a (diff) | |
download | paxutils-a01a10d2762e57a4dd689ed5686d1bdde6045b0d.tar.gz |
Use last_component instead of base_name. Patch by Eric Blake.
-rw-r--r-- | lib/rtapelib.c | 2 | ||||
-rw-r--r-- | paxlib/rtape.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rtapelib.c b/lib/rtapelib.c index 2d53f3d..51faf3c 100644 --- a/lib/rtapelib.c +++ b/lib/rtapelib.c @@ -461,7 +461,7 @@ rmt_open__ (const char *file_name, int open_mode, int bias, return -1; #endif } - remote_shell_basename = base_name (remote_shell); + remote_shell_basename = last_component (remote_shell); /* Set up the pipes for the `rsh' command, and fork. */ diff --git a/paxlib/rtape.c b/paxlib/rtape.c index 29fad99..41f6ef1 100644 --- a/paxlib/rtape.c +++ b/paxlib/rtape.c @@ -467,7 +467,7 @@ rmt_open (const char *file_name, int open_mode, int bias, return -1; #endif } - remote_shell_basename = base_name (remote_shell); + remote_shell_basename = last_component (remote_shell); /* Set up the pipes for the `rsh' command, and fork. */ |