- if (!strcmp(option,"email"))
- {
- if (param[0]==0)
- {
- SPRINT(options_error, "Error in %s (line %d): parameter for option %s missing.\n", filename,line,option);
+ if (!strcmp(option,"socketuser")) {
+ char * endptr = NULL;
+ options.socketuser = strtol(param, &endptr, 10);
+ if (*endptr != '\0') {
+ struct passwd * pwd = getpwnam(param);
+ if (pwd == NULL) {
+ UPRINT(options_error, "Error in %s (line %d): no such user: %s.\n",filename,line,param);
+ goto error;
+ }
+ options.socketuser = pwd->pw_uid;
+ }
+ } else
+ if (!strcmp(option,"socketgroup")) {
+ char * endptr = NULL;
+ options.socketgroup = strtol(param, &endptr, 10);
+ if (*endptr != '\0') {
+ struct group * grp = getgrnam(param);
+ if (grp == NULL) {
+ UPRINT(options_error, "Error in %s (line %d): no such group: %s.\n",filename,line,param);
+ goto error;
+ }
+ options.socketgroup = grp->gr_gid;
+ }
+ } else
+ if (!strcmp(option,"socketrights")) {
+ options.socketrights = strtol(param, NULL, 0);
+ } else
+ if (!strcmp(option,"polling")) {
+ options.polling = 1;
+ } else
+ if (!strcmp(option,"loopback-ext")) {
+ if (param[0]==0) {
+ UPRINT(options_error, "Error in %s (line %d): parameter for option %s missing.\n",filename,line, option);