mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Update vdipipesample.cpp
Fix sample to work on SLES. . The issue is in access to the shared memory that VDI uses to communicate between SQL Server and the client application. When opening the file, the mode is modified by the current umask setting and group sharing is removed.
This commit is contained in:
@ -45,6 +45,8 @@
|
||||
#include <string>
|
||||
#include <unistd.h>
|
||||
#include <uuid/uuid.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "vdi.h" // interface declaration
|
||||
#include "vdierror.h" // error constants
|
||||
@ -132,6 +134,7 @@ int main(int argc, char* argv[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
umask(0);
|
||||
vds = new ClientVirtualDeviceSet();
|
||||
|
||||
// Setup the VDI configuration we want to use.
|
||||
|
||||
Reference in New Issue
Block a user