diff options
Diffstat (limited to 'coreutils/install.c')
-rw-r--r-- | coreutils/install.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/coreutils/install.c b/coreutils/install.c index c01750f81..2e4dc257f 100644 --- a/coreutils/install.c +++ b/coreutils/install.c | |||
@@ -140,13 +140,16 @@ int install_main(int argc, char **argv) | |||
140 | #endif | 140 | #endif |
141 | }; | 141 | }; |
142 | 142 | ||
143 | opt_complementary = "t--d:d--t:s--d:d--s" IF_FEATURE_INSTALL_LONG_OPTIONS(IF_SELINUX(":Z--\xff:\xff--Z")); | ||
144 | /* -c exists for backwards compatibility, it's needed */ | 143 | /* -c exists for backwards compatibility, it's needed */ |
145 | /* -b is ignored ("make a backup of each existing destination file") */ | 144 | /* -b is ignored ("make a backup of each existing destination file") */ |
146 | opts = GETOPT32(argv, "cvb" "Ddpsg:m:o:t:" IF_SELINUX("Z:"), | 145 | opts = GETOPT32(argv, "^" |
147 | LONGOPTS | 146 | "cvb" "Ddpsg:m:o:t:" IF_SELINUX("Z:") |
148 | &gid_str, &mode_str, &uid_str, &last | 147 | "\0" |
149 | IF_SELINUX(, &scontext) | 148 | "t--d:d--t:s--d:d--s" |
149 | IF_FEATURE_INSTALL_LONG_OPTIONS(IF_SELINUX(":Z--\xff:\xff--Z")), | ||
150 | LONGOPTS | ||
151 | &gid_str, &mode_str, &uid_str, &last | ||
152 | IF_SELINUX(, &scontext) | ||
150 | ); | 153 | ); |
151 | argc -= optind; | 154 | argc -= optind; |
152 | argv += optind; | 155 | argv += optind; |