summaryrefslogtreecommitdiff
path: root/src/install.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/install.c
parentf5e9896c186513a956952a951b3a417467dff6b6 (diff)
downloadcoreutils-52dedbfebbb911c39feeb052e4bcd26b2a99a2c9.tar.xz
Use dir_name, not dirname. Include dirname.h.
Diffstat (limited to 'src/install.c')
-rw-r--r--src/install.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/install.c b/src/install.c
index 98c196a43..888204d10 100644
--- a/src/install.c
+++ b/src/install.c
@@ -81,6 +81,7 @@
#include "path-concat.h"
#include "cp-hash.h"
#include "copy.h"
+#include "dirname.h"
#if HAVE_SYS_WAIT_H
# include <sys/wait.h>
@@ -127,7 +128,6 @@ gid_t getgid ();
#endif
char *base_name ();
-char *dirname ();
int full_write ();
int isdir ();
enum backup_type get_version ();
@@ -411,7 +411,7 @@ install_file_to_path (const char *from, const char *to,
char *dest_dir;
int fail;
- dest_dir = dirname (to);
+ dest_dir = dir_name (to);
/* check to make sure this is a path (not install a b ) */
if (!STREQ (dest_dir, ".")