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

FIXED fix_open_trunc-mp3val-0.1.8.patch

By: a guest on May 29th, 2012  |  syntax: Diff  |  size: 0.76 KB  |  views: 52  |  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        2009-06-25 16:14:03.000000000 -0400
  2. --- crossapi_new.cpp    2012-05-29 16:54:22.979071888 -0400
  3. ***************
  4. *** 241,247 ****
  5.   //Moving failed due to different logical drives of source and destination. Let's copy:
  6.         id=open(szOldName,O_RDONLY);
  7.         if(id==-1) return 0;
  8. !       od=open(szNewName,O_WRONLY|O_CREAT|O_TRUNC);
  9.         if(od==-1) {
  10.                 close(id);
  11.                 return 0;
  12. --- 241,247 ----
  13.   //Moving failed due to different logical drives of source and destination. Let's copy:
  14.         id=open(szOldName,O_RDONLY);
  15.         if(id==-1) return 0;
  16. !       od=open(szNewName,O_WRONLY|O_CREAT|O_TRUNC,S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
  17.         if(od==-1) {
  18.                 close(id);
  19.                 return 0;