forked from public/pyceo
Fix magic, really
This commit is contained in:
parent
b991d32e63
commit
36e3ae8c9e
|
@ -59,13 +59,13 @@ int addclub() {
|
||||||
snprintf(homedir, sizeof(homedir), "%s/%s", club_home, userid);
|
snprintf(homedir, sizeof(homedir), "%s/%s", club_home, userid);
|
||||||
snprintf(acl_s, sizeof(acl_s), club_home_acl, userid);
|
snprintf(acl_s, sizeof(acl_s), club_home_acl, userid);
|
||||||
|
|
||||||
acl = acl_from_text(club_home_acl);
|
acl = acl_from_text(acl_s);
|
||||||
if (acl == NULL)
|
if (acl == NULL)
|
||||||
fatalpe("Unable to parse club_home_acl");
|
fatalpe("Unable to parse club_home_acl");
|
||||||
|
|
||||||
if (*club_home_acl) {
|
if (*club_home_acl) {
|
||||||
snprintf(dacl_s, sizeof(dacl_s), club_home_dacl, userid);
|
snprintf(dacl_s, sizeof(dacl_s), club_home_dacl, userid);
|
||||||
dacl = acl_from_text(club_home_dacl);
|
dacl = acl_from_text(dacl_s);
|
||||||
if (dacl == NULL)
|
if (dacl == NULL)
|
||||||
fatalpe("Unable to parse club_home_dacl");
|
fatalpe("Unable to parse club_home_dacl");
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,13 +64,13 @@ int addmember() {
|
||||||
snprintf(homedir, sizeof(homedir), "%s/%s", member_home, userid);
|
snprintf(homedir, sizeof(homedir), "%s/%s", member_home, userid);
|
||||||
snprintf(acl_s, sizeof(acl_s), club_home_acl, userid);
|
snprintf(acl_s, sizeof(acl_s), club_home_acl, userid);
|
||||||
|
|
||||||
acl = acl_from_text(member_home_acl);
|
acl = acl_from_text(acl_s);
|
||||||
if (acl == NULL)
|
if (acl == NULL)
|
||||||
fatalpe("Unable to parse member_home_acl");
|
fatalpe("Unable to parse member_home_acl");
|
||||||
|
|
||||||
if (*member_home_acl) {
|
if (*member_home_acl) {
|
||||||
snprintf(dacl_s, sizeof(dacl_s), club_home_dacl, userid);
|
snprintf(dacl_s, sizeof(dacl_s), club_home_dacl, userid);
|
||||||
dacl = acl_from_text(member_home_dacl);
|
dacl = acl_from_text(dacl_s);
|
||||||
if (dacl == NULL)
|
if (dacl == NULL)
|
||||||
fatalpe("Unable to parse member_home_dacl");
|
fatalpe("Unable to parse member_home_dacl");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue