summaryrefslogtreecommitdiff
path: root/src/copy.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-12-07 06:20:50 +0000
committerJim Meyering <jim@meyering.net>1998-12-07 06:20:50 +0000
commit52dedbfebbb911c39feeb052e4bcd26b2a99a2c9 (patch)
treea893189a382b2b7a2fd075ed8b1128b4448d2a81 /src/copy.c
parentf5e9896c186513a956952a951b3a417467dff6b6 (diff)
downloadcoreutils-52dedbfebbb911c39feeb052e4bcd26b2a99a2c9.tar.xz
Use dir_name, not dirname. Include dirname.h.
Diffstat (limited to 'src/copy.c')
-rw-r--r--src/copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/copy.c b/src/copy.c
index 3b1acdfe1..401ea79ed 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -33,6 +33,7 @@
#include "copy.h"
#include "cp-hash.h"
#include "path-concat.h"
+#include "dirname.h"
#define DO_CHOWN(Chown, File, New_uid, New_gid) \
(Chown ((File), (x->myeuid == 0 ? (New_uid) : x->myeuid), (New_gid)) \
@@ -51,7 +52,6 @@ struct dir_list
int full_write ();
int euidaccess ();
int yesno ();
-char *dirname ();
static int copy_internal PARAMS ((const char *src_path, const char *dst_path,
int new_dst, dev_t device,
@@ -700,7 +700,7 @@ copy_internal (const char *src_path, const char *dst_path,
char *dst_parent;
int in_current_dir;
- dst_parent = dirname (dst_path);
+ dst_parent = dir_name (dst_path);
if (dst_parent == NULL)
error (1, 0, _("virtual memory exhausted"));