summaryrefslogtreecommitdiff
path: root/src/install.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-01-05 10:09:24 +0000
committerJim Meyering <jim@meyering.net>1998-01-05 10:09:24 +0000
commited0becde29e3c089b3dc3b4f99cff81a5730e8ec (patch)
tree7401462e05ea7ee128ed800962d9c10e5ea2da8a /src/install.c
parent8d64a37a777e25cbb7838de3cdd6a6da3abdeb00 (diff)
downloadcoreutils-ed0becde29e3c089b3dc3b4f99cff81a5730e8ec.tar.xz
reformat comment, dcl fail, dirname
Diffstat (limited to 'src/install.c')
-rw-r--r--src/install.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/install.c b/src/install.c
index 6607ebcc9..1c3741d72 100644
--- a/src/install.c
+++ b/src/install.c
@@ -118,6 +118,7 @@ gid_t getgid ();
#endif
char *base_name ();
+char *dirname ();
int safe_read ();
int full_write ();
int isdir ();
@@ -344,6 +345,7 @@ static int
install_file_to_path (const char *from, const char *to)
{
char *dest_dir;
+ int fail;
dest_dir = dirname (to);
@@ -351,12 +353,11 @@ install_file_to_path (const char *from, const char *to)
if (!STREQ (dest_dir, ".")
&& !isdir (dest_dir))
{
- /* FIXME: Note that it's a little kludgey (maybe even dangerous)
- that we derive the permissions for parent directories from the
- permissions specfied for the file, but since this option is
- intended mainly to help installers when the distribution doesn't
- provide proper install rules, it's not so bad.
- Maybe use something like this instead:
+ /* FIXME: Note that it's a little kludgey (even dangerous) that we
+ derive the permissions for parent directories from the permissions
+ specfied for the file, but since this option is intended mainly to
+ help installers when the distribution doesn't provide proper install
+ rules, it's not so bad. Maybe use something like this instead:
int parent_dir_mode = (mode | (S_IRUGO | S_IXUGO)) & (~SPECIAL_BITS);
*/
fail = make_path (dest_dir, mode, mode, owner_id, group_id, 0,