X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcontrol.c;h=d018f2743b41cb7c4efb4e8c5c92a98c083d92ad;hb=ca0714f168ab7cb7af8177e10941aa5c1fa3b09f;hp=a535192ed7633ae4a678ec0f57c8d9938f5ed7a2;hpb=15036e4105019af481eab5a053d54df4033d8d1d;p=citadel.git diff --git a/citadel/control.c b/citadel/control.c index a535192ed..d018f2743 100644 --- a/citadel/control.c +++ b/citadel/control.c @@ -66,13 +66,13 @@ void get_control(void) if (control_fp == NULL) { control_fp = fopen("citadel.control", "rb+"); if (control_fp != NULL) { - fchown(fileno(control_fp), config.c_bbsuid, -1); + fchown(fileno(control_fp), config.c_ctdluid, -1); } } if (control_fp == NULL) { control_fp = fopen("citadel.control", "wb+"); if (control_fp != NULL) { - fchown(fileno(control_fp), config.c_bbsuid, -1); + fchown(fileno(control_fp), config.c_ctdluid, -1); memset(&CitControl, 0, sizeof(struct CitControl)); fwrite(&CitControl, sizeof(struct CitControl), 1, control_fp); @@ -176,7 +176,7 @@ void cmd_conf(char *argbuf) cprintf("%s\n", config.c_twitroom); cprintf("%s\n", config.c_moreprompt); cprintf("%d\n", config.c_restrict); - cprintf("%s\n", config.c_bbs_city); + cprintf("%s\n", config.c_site_location); cprintf("%s\n", config.c_sysadm); cprintf("%d\n", config.c_maxsessions); cprintf("xxx\n"); /* placeholder -- field no longer in use */ @@ -276,8 +276,8 @@ void cmd_conf(char *argbuf) config.c_restrict = 1; break; case 12: - safestrncpy(config.c_bbs_city, buf, - sizeof config.c_bbs_city); + safestrncpy(config.c_site_location, buf, + sizeof config.c_site_location); break; case 13: safestrncpy(config.c_sysadm, buf,