projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More readable.
[apps/pfixtools.git]
/
main-postlicyd.c
diff --git
a/main-postlicyd.c
b/main-postlicyd.c
index
febc1e2
..
0431b95
100644
(file)
--- a/
main-postlicyd.c
+++ b/
main-postlicyd.c
@@
-274,6
+274,7
@@
void usage(void)
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
+ bool unsafe = false;
const char *pidfile = NULL;
bool daemonize = true;
int port = DEFAULT_PORT;
const char *pidfile = NULL;
bool daemonize = true;
int port = DEFAULT_PORT;
@@
-283,6
+284,9
@@
int main(int argc, char *argv[])
case 'p':
pidfile = optarg;
break;
case 'p':
pidfile = optarg;
break;
+ case 'u':
+ unsafe = true;
+ break;
case 'l':
port = atoi(optarg);
break;
case 'l':
port = atoi(optarg);
break;
@@
-300,14
+304,11
@@
int main(int argc, char *argv[])
return EXIT_FAILURE;
}
return EXIT_FAILURE;
}
- if (common_setup(pidfile, false, RUNAS_USER, RUNAS_GROUP, daemonize)
- != EXIT_SUCCESS) {
+ if (common_setup(pidfile, false, RUNAS_USER, RUNAS_GROUP,
+ daemonize) != EXIT_SUCCESS
+ || start_listener(port) < 0) {
return EXIT_FAILURE;
}
return EXIT_FAILURE;
}
-
- if (start_listener(port) < 0)
- return EXIT_FAILURE;
-
return server_loop(query_starter, (delete_client_t)query_delete,
policy_run, NULL);
}
return server_loop(query_starter, (delete_client_t)query_delete,
policy_run, NULL);
}