| 176 | } |
| 177 | |
| 178 | void |
| 179 | usage (int status) |
| 180 | { |
| 181 | if (status != EXIT_SUCCESS) |
| 182 | emit_try_help (); |
| 183 | else |
| 184 | { |
| 185 | printf (_("\ |
| 186 | Usage: %s [OPTION]... NEWROOT [COMMAND [ARG]...]\n"), program_name); |
| 187 | |
| 188 | fputs (_("\ |
| 189 | Run COMMAND with root directory set to NEWROOT.\n\ |
| 190 | \n\ |
| 191 | "), stdout); |
| 192 | |
| 193 | oputs (_("\ |
| 194 | --groups=G_LIST\n\ |
| 195 | specify supplementary groups as g1,g2,..,gN\n\ |
| 196 | ")); |
| 197 | oputs (_("\ |
| 198 | --userspec=USER:GROUP\n\ |
| 199 | specify user and group (ID or name) to use\n\ |
| 200 | ")); |
| 201 | oprintf (_("\ |
| 202 | --skip-chdir\n\ |
| 203 | do not change working directory to %s\n\ |
| 204 | "), quoteaf ("/")); |
| 205 | |
| 206 | oputs (HELP_OPTION_DESCRIPTION); |
| 207 | oputs (VERSION_OPTION_DESCRIPTION); |
| 208 | fputs (_("\ |
| 209 | \n\ |
| 210 | If no command is given, run '\"$SHELL\" -i' (default: '/bin/sh -i').\n\ |
| 211 | "), stdout); |
| 212 | emit_exec_status (PROGRAM_NAME); |
| 213 | emit_ancillary_info (PROGRAM_NAME); |
| 214 | } |
| 215 | exit (status); |
| 216 | } |
| 217 | |
| 218 | int |
| 219 | main (int argc, char **argv) |
no test coverage detected