1
0
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:
Mihaela Blendea
2017-05-19 14:58:55 -07:00
committed by GitHub
parent 27a08f52a6
commit 9ccc8a17fb

View File

@ -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
@ -131,7 +133,8 @@ int main(int argc, char* argv[])
"Demonstrate a Backup or Restore using the Virtual Device Interface\n");
return 1;
}
umask(0);
vds = new ClientVirtualDeviceSet();
// Setup the VDI configuration we want to use.