Advertisement
Guest User

fix_open_trunc-mp3val-0.1.8.patch

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