X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=options.c;h=fbe7feadf0b869e710a50563e0c3bbdb7a7cd8b0;hp=6bfdb978198a719daa96907baeb1fccef7f2c6e4;hb=b1ab2b9ac1cfc15d2a8f5850145dd69043cc3ef7;hpb=69fd5e0ae9a26c8aad0acf475972cb329337b137 diff --git a/options.c b/options.c index 6bfdb97..fbe7fea 100644 --- a/options.c +++ b/options.c @@ -30,7 +30,9 @@ struct options options = { "", /* dummy caller id */ 0, /* use tones by dsp.o */ 0, /* by default use priority 0 */ - "lcr@your.machine" /* source mail adress */ + "lcr@your.machine", /* source mail adress */ + "/var/tmp", /* path of lock files */ + 0700 /* rights of lcr admin socket */ }; char options_error[256]; @@ -240,6 +242,22 @@ int read_options(void) SCPY(options.email, param); } else + if (!strcmp(option,"lock")) + { + if (param[0]==0) + { + SPRINT(options_error, "Error in %s (line %d): parameter for option %s missing.\n",filename,line,option); + goto error; + } + if (param[strlen(param)-1] == '/') + param[strlen(param)-1]=0; + SCPY(options.lock, param); + + } else + if (!strcmp(option,"socketrights")) + { + options.socketrights = strtol(param, NULL, 0); + } else { SPRINT(options_error, "Error in %s (line %d): wrong option keyword %s.\n", filename,line,option); goto error;