projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ba504d
)
(install_file_to_path): Copy the file after creating any leading directories.
author
Jim Meyering
<jim@meyering.net>
Sun, 20 Sep 1998 02:17:26 +0000
(
02:17
+0000)
committer
Jim Meyering
<jim@meyering.net>
Sun, 20 Sep 1998 02:17:26 +0000
(
02:17
+0000)
(main) [case 'v']: Set `x.verbose' to 1, not 0.
src/install.c
patch
|
blob
|
history
diff --git
a/src/install.c
b/src/install.c
index
81065d5
..
fa57931
100644
(file)
--- 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
{