Skip to content

Commit

Permalink
MDEV-24040 - fix appveyor build
Browse files Browse the repository at this point in the history
Old SDK is missing #define SECURITY_MAX_SID_STRING_CHARACTERS
  • Loading branch information
vaintroub committed Oct 28, 2020
1 parent 3829b40 commit cb04c1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sql/mysqld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2597,6 +2597,11 @@ static void init_pipe_security_descriptor()
(FILE_READ_DATA | FILE_READ_EA | FILE_READ_ATTRIBUTES | READ_CONTROL | \
SYNCHRONIZE | FILE_WRITE_DATA | FILE_WRITE_EA | FILE_WRITE_ATTRIBUTES)

#ifndef SECURITY_MAX_SID_STRING_CHARACTERS
/* Old SDK does not have this constant */
#define SECURITY_MAX_SID_STRING_CHARACTERS 187
#endif

/*
Figure out SID of the user that runs the server, then create SDDL string
for pipe permissions, and convert it to the security descriptor.
Expand Down

0 comments on commit cb04c1b

Please sign in to comment.