Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

fix_open_trunc-mp3val-0.1.8.patch

By: a guest on Sep 19th, 2011  |  syntax: Diff  |  size: 0.36 KB  |  views: 117  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- crossapi.cpp
  2. +++ crossapi.cpp
  3. @@ -241,7 +241,7 @@
  4.  //Moving failed due to different logical drives of source and destination. Let's copy:
  5.         id=open(szOldName,O_RDONLY);
  6.         if(id==-1) return 0;
  7. -       od=open(szNewName,O_WRONLY|O_CREAT|O_TRUNC);
  8. +       od=open(szNewName,O_WRONLY|O_CREAT|O_TRUNC,S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
  9.         if(od==-1) {
  10.                 close(id);
  11.                 return 0;