SHARE
TWEET

libgig-svn r2580 Akai.cpp O_CREAT with mode patch

a guest May 27th, 2014 219 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Index: src/Akai.cpp
  2. ===================================================================
  3. --- src/Akai.cpp        (Revision 2580)
  4. +++ src/Akai.cpp        (Arbeitskopie)
  5. @@ -1877,7 +1877,8 @@
  6.  {
  7.  #if defined(_CARBON_) || defined(__APPLE__) || LINUX
  8.    const uint bufferSize = 524288; // 512 kB
  9. -  int fOut = open(path, O_WRONLY | O_NONBLOCK | O_CREAT | O_TRUNC);
  10. +  mode_t mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
  11. +  int fOut = open(path, O_WRONLY | O_NONBLOCK | O_CREAT | O_TRUNC, mode);
  12.    if (mFile <= 0) {
  13.      printf("Can't open output file %s\n", path);
  14.      return false;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top