Ticket #3277: infopanel-cant-statvfs.patch

File infopanel-cant-statvfs.patch, 917 bytes (added by mcermak, 10 years ago)

Patch for 4.8.13

  • src/filemanager/mountlist.c

    diff -Naur mc-4.8.13.old/src/filemanager/mountlist.c mc-4.8.13.new/src/filemanager/mountlist.c
    old new  
    999999        char *table = MNTTAB; 
    10001000        FILE *fp; 
    10011001        int ret; 
    1002         int lockfd; 
    10031002 
    10041003#if defined F_RDLCK && defined F_SETLKW 
     1004        int lockfd; 
    10051005        /* MNTTAB_LOCK is a macro name of our own invention; it's not present in 
    10061006           e.g. Solaris 2.6.  If the SVR4 folks ever define a macro 
    10071007           for this file name, we should use their macro name instead. 
     
    10561056            ret = fclose (fp) == EOF ? errno : 0 < ret ? 0 : -1; 
    10571057        } 
    10581058 
     1059#if defined F_RDLCK && defined F_SETLKW 
    10591060        if (lockfd >= 0 && close (lockfd) != 0) 
    10601061            ret = errno; 
     1062#endif 
    10611063 
    10621064        if (ret >= 0) 
    10631065        {