(void) close(fd);
}
}
+
/*
* mydaemon creates a pipe between the partent and child
* process. The parent process will wait until the
static void
usage(char *progname)
{
- fprintf(stderr, "usage: %s [-n] [-f] [-v] [-r]\n",
+ fprintf(stderr, "usage: %s [-n] [-f] [-v] [-r] [-m] [-o]\n",
progname);
exit(1);
}
extern char *optarg;
char *progname;
- while ((opt = getopt(argc, argv, "fvrnp:")) != -1) {
+ while ((opt = getopt(argc, argv, "fivrnp:")) != -1) {
switch (opt) {
case 'f':
fg = 1;
printerr(0, "ERROR: Can't get Local Kerberos realm\n");
exit(1);
}
-
+
if (get_creds && gssd_prepare_creds(must_srv_mds, must_srv_oss)) {
printerr(0, "unable to obtain root (machine) credentials\n");
printerr(0, "do you have a keytab entry for "