5 * This material, written by Henry Spencer, was released by him
6 * into the public domain and is thus not subject to any copyright.
9 #include <capsicum_helpers.h>
17 main(int argc, char *argv[])
22 if (caph_limit_stdio() < 0 || (cap_enter() < 0 && errno != ENOSYS))
25 optind = 2; /* Past the program name and the option letters. */
26 while ((c = getopt(argc, argv, argv[1])) != -1)
29 status = 1; /* getopt routine gave message */
33 printf(" -%c %s", c, optarg);
39 for (; optind < argc; optind++)
40 printf(" %s", argv[optind]);