Fix for reorganised config files
This commit is contained in:
parent
58679ef14a
commit
98a236abb9
@ -49,9 +49,9 @@ If you want to install Magicka BBS, follow these steps.
|
||||
|
||||
`cp -r ansi-default ansi`
|
||||
|
||||
8. Run Magicka BBS on a port over 1024 (Below require root, and wer're not ready for that).
|
||||
8. Run Magicka BBS on a port over 1024 (Below require root, and we're not ready for that).
|
||||
|
||||
`./magicka config/bbs.ini 2300`
|
||||
|
||||
9. Your BBS is now running on port 2300, log in and create yourself an account! (By default there is only one
|
||||
security level, you can add more, but you will need to use an SQLite Manager to modify users.sq3 and set security levels, as there is no user editor yet.
|
||||
9. Your BBS is now running on port 2300, log in and create yourself an account! (By default there is only one security level, you can add more,
|
||||
but you will need to use an SQLite Manager to modify users.sq3 and set security levels, as there is no user editor yet.
|
||||
|
2
users.c
2
users.c
@ -228,7 +228,7 @@ struct user_record *check_user_pass(int socket, char *loginname, char *password)
|
||||
|
||||
user->sec_info = (struct sec_level_t *)malloc(sizeof(struct sec_level_t));
|
||||
|
||||
sprintf(buffer, "%s/s%d.ini", conf.bbs_path, user->sec_level);
|
||||
sprintf(buffer, "%s/config/s%d.ini", conf.bbs_path, user->sec_level);
|
||||
if (ini_parse(buffer, secLevel, user->sec_info) <0) {
|
||||
printf("Unable to load sec Level ini (%s)!\n", buffer);
|
||||
exit(-1);
|
||||
|
Reference in New Issue
Block a user