diff options
author | Jim Meyering <jim@meyering.net> | 1998-01-05 10:09:24 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-01-05 10:09:24 +0000 |
commit | ed0becde29e3c089b3dc3b4f99cff81a5730e8ec (patch) | |
tree | 7401462e05ea7ee128ed800962d9c10e5ea2da8a /src/install.c | |
parent | 8d64a37a777e25cbb7838de3cdd6a6da3abdeb00 (diff) | |
download | coreutils-ed0becde29e3c089b3dc3b4f99cff81a5730e8ec.tar.xz |
reformat comment, dcl fail, dirname
Diffstat (limited to 'src/install.c')
-rw-r--r-- | src/install.c | 13 |
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, |