Advertisement
Guest User

libgig-svn r2580 Akai.cpp O_CREAT with mode patch

a guest
May 27th, 2014
391
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.58 KB | None | 0 0
  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;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement