diff options
Diffstat (limited to 'coreutils/install.c')
-rw-r--r-- | coreutils/install.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/coreutils/install.c b/coreutils/install.c index 82773b8de..305e02b0d 100644 --- a/coreutils/install.c +++ b/coreutils/install.c | |||
@@ -48,7 +48,7 @@ static const struct option install_long_options[] = { | |||
48 | { "owner", 0, NULL, 'o' }, | 48 | { "owner", 0, NULL, 'o' }, |
49 | { 0, 0, 0, 0 } | 49 | { 0, 0, 0, 0 } |
50 | }; | 50 | }; |
51 | 51 | ||
52 | extern int install_main(int argc, char **argv) | 52 | extern int install_main(int argc, char **argv) |
53 | { | 53 | { |
54 | struct stat statbuf; | 54 | struct stat statbuf; |
@@ -116,7 +116,7 @@ extern int install_main(int argc, char **argv) | |||
116 | } | 116 | } |
117 | return(ret); | 117 | return(ret); |
118 | } | 118 | } |
119 | 119 | ||
120 | cp_mv_stat2(argv[argc - 1], &statbuf, lstat); | 120 | cp_mv_stat2(argv[argc - 1], &statbuf, lstat); |
121 | for (i = optind; i < argc - 1; i++) { | 121 | for (i = optind; i < argc - 1; i++) { |
122 | unsigned char *dest; | 122 | unsigned char *dest; |
@@ -137,15 +137,15 @@ extern int install_main(int argc, char **argv) | |||
137 | /* Set the user and group id */ | 137 | /* Set the user and group id */ |
138 | if (lchown(dest, uid, gid) == -1) { | 138 | if (lchown(dest, uid, gid) == -1) { |
139 | bb_perror_msg("cannot change ownership of %s", dest); | 139 | bb_perror_msg("cannot change ownership of %s", dest); |
140 | ret = EXIT_FAILURE; | 140 | ret = EXIT_FAILURE; |
141 | } | 141 | } |
142 | if (flags & INSTALL_OPT_STRIP) { | 142 | if (flags & INSTALL_OPT_STRIP) { |
143 | if (execlp("strip", "strip", dest, NULL) == -1) { | 143 | if (execlp("strip", "strip", dest, NULL) == -1) { |
144 | bb_error_msg("strip failed"); | 144 | bb_error_msg("strip failed"); |
145 | ret = EXIT_FAILURE; | 145 | ret = EXIT_FAILURE; |
146 | } | 146 | } |
147 | } | 147 | } |
148 | } | 148 | } |
149 | 149 | ||
150 | return(ret); | 150 | return(ret); |
151 | } | 151 | } |