summaryrefslogtreecommitdiff
path: root/src/ln.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-05-27 11:04:41 +0000
committerJim Meyering <jim@meyering.net>1997-05-27 11:04:41 +0000
commit4c2adcbd56def9b5897a1a462998e77233d83542 (patch)
treed64d2b06fc75d3ce761ac2ac7b315276f466e585 /src/ln.c
parentf0c27dac9e8762833da5a6c16450192569bebd9f (diff)
downloadcoreutils-4c2adcbd56def9b5897a1a462998e77233d83542.tar.xz
Use base_name, not basename.
Diffstat (limited to 'src/ln.c')
-rw-r--r--src/ln.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ln.c b/src/ln.c
index a4966ad9d..492d4598a 100644
--- a/src/ln.c
+++ b/src/ln.c
@@ -48,7 +48,7 @@ int symlink ();
tmp_source = (char *) alloca (strlen ((source)) + 1); \
strcpy (tmp_source, (source)); \
strip_trailing_slashes (tmp_source); \
- source_base = basename (tmp_source); \
+ source_base = base_name (tmp_source); \
\
(new_dest) = (char *) alloca (strlen ((dest)) + 1 \
+ strlen (source_base) + 1); \
@@ -56,7 +56,7 @@ int symlink ();
} \
while (0)
-char *basename ();
+char *base_name ();
char *dirname ();
enum backup_type get_version ();
int isdir ();
@@ -146,7 +146,7 @@ same_name (const char *source, const char *dest)
return (source_dir_stats.st_dev == dest_dir_stats.st_dev
&& source_dir_stats.st_ino == dest_dir_stats.st_ino
- && STREQ (basename (source), basename (dest)));
+ && STREQ (base_name (source), base_name (dest)));
}
/* Make a link DEST to the (usually) existing file SOURCE.
@@ -216,7 +216,7 @@ do_link (const char *source, const char *dest)
/* If the destination is a directory or (it is a symlink to a directory
and the user has not specified --no-dereference), then form the
- actual destination name by appending basename (source) to the
+ actual destination name by appending base_name (source) to the
specified destination directory. */
if ((lstat_status == 0
&& S_ISDIR (dest_stats.st_mode))