summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-09-20 02:17:26 +0000
committerJim Meyering <jim@meyering.net>1998-09-20 02:17:26 +0000
commitef679d9871e1c8ba7039e02875298a1bb85c183e (patch)
tree58083a957edccebb08d8fd032bc01f6c1bbdbed6 /src
parent3ba504d4090b2286b5a1842d619907d2b4c1e521 (diff)
downloadcoreutils-ef679d9871e1c8ba7039e02875298a1bb85c183e.tar.xz
(install_file_to_path): Copy the file after creating any leading directories.
(main) [case 'v']: Set `x.verbose' to 1, not 0.
Diffstat (limited to 'src')
-rw-r--r--src/install.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/install.c b/src/install.c
index 81065d513..fa579315a 100644
--- a/src/install.c
+++ b/src/install.c
@@ -288,7 +288,7 @@ main (int argc, char **argv)
mkdir_and_install = 1;
break;
case 'v':
- x.verbose = 0;
+ x.verbose = 1;
break;
case 'g':
group_name = optarg;
@@ -425,6 +425,9 @@ install_file_to_path (const char *from, const char *to,
*/
fail = make_path (dest_dir, mode, mode, owner_id, group_id, 0,
(x->verbose ? _("creating directory `%s'") : NULL));
+
+ if (fail == 0)
+ fail = install_file_in_dir (from, dest_dir, x);
}
else
{