same bug
This commit is contained in:
parent
065f67db89
commit
76de88805d
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ privilegeset_extend(struct PrivilegeSet *parent, const char *name, const char *p
|
||||||
set->name = rb_strdup(name);
|
set->name = rb_strdup(name);
|
||||||
set->flags = flags;
|
set->flags = flags;
|
||||||
set->privs = rb_malloc(strlen(parent->privs) + 1 + strlen(privs) + 1);
|
set->privs = rb_malloc(strlen(parent->privs) + 1 + strlen(privs) + 1);
|
||||||
strcpy(parent->privs, set->privs);
|
strcpy(set->privs, parent->privs);
|
||||||
strcat(set->privs, " ");
|
strcat(set->privs, " ");
|
||||||
strcat(set->privs, privs);
|
strcat(set->privs, privs);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue