Skip to content
Snippets Groups Projects
Commit d683899f authored by Jon Robertson's avatar Jon Robertson
Browse files

Fixed bug with disable and enable leading to mask problems

modifyPrincipal now sets the mask to 0 if it is not given a mask, rather
than passing along the undefined mask.  This directly affected the
disablePrincipal and enablePrincipal functions, which would call
modifyPrincipal without a given mask and led to problems on my system.
parent a95b8059
No related branches found
No related tags found
No related merge requests found
...@@ -313,6 +313,7 @@ sub modifyPrincipal ...@@ -313,6 +313,7 @@ sub modifyPrincipal
{ {
my ($self,$principal,$mask) = @_; my ($self,$principal,$mask) = @_;
$mask = 0 unless $mask;
eval eval
{ {
$self->handle->c_modify_principal($principal,$mask); $self->handle->c_modify_principal($principal,$mask);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment