SHARE
TWEET

fix_open_trunc-mp3val-0.1.8.patch

a guest Sep 19th, 2011 124 Never
  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;
RAW Paste Data
Top