On Fri, Feb 12, 2016 at 17:51:12 +0100, Julien Cristau wrote:
> @@ -783,7 +787,19 @@ parse_option(int c, gnc_t gnc, void *closure, char
> *token)
> logfile = file;
> else if(strcmp(token, "pid-file") == 0)
> pidfile = file;
> - else
> + else if(strcmp(token, "local-path") == 0) {
> + if (strlen(file) >= sizeof(local_server_path))
> + goto error;
> + local_server_port = -1;
> + strncpy(local_server_path, file, sizeof(local_server_path));
> + local_server_write = 0;
> + } else if(strcmp(token, "local-path-readwrite") == 0) {
> + if (strlen(file) >= sizeof(local_server_path))
> + goto error;
> + local_server_port = -1;
> + strncpy(local_server_path, file, sizeof(local_server_path));
> + local_server_write = 1;
> + } else
> abort();
> } else if(strcmp(token, "debug") == 0) {
> int d;
I'm not sure it makes sense to accept local-path*/local-port* changes
from the local interface itself. Doing that means I'll unlink the wrong
path on exit. The same is already true for pid-file, though.
Cheers,
Julien
_______________________________________________
Babel-users mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/babel-users