diff -Naur mc-4.8.13.old/src/filemanager/mountlist.c mc-4.8.13.new/src/filemanager/mountlist.c
old
|
new
|
|
999 | 999 | char *table = MNTTAB; |
1000 | 1000 | FILE *fp; |
1001 | 1001 | int ret; |
1002 | | int lockfd; |
1003 | 1002 | |
1004 | 1003 | #if defined F_RDLCK && defined F_SETLKW |
| 1004 | int lockfd; |
1005 | 1005 | /* MNTTAB_LOCK is a macro name of our own invention; it's not present in |
1006 | 1006 | e.g. Solaris 2.6. If the SVR4 folks ever define a macro |
1007 | 1007 | for this file name, we should use their macro name instead. |
… |
… |
|
1056 | 1056 | ret = fclose (fp) == EOF ? errno : 0 < ret ? 0 : -1; |
1057 | 1057 | } |
1058 | 1058 | |
| 1059 | #if defined F_RDLCK && defined F_SETLKW |
1059 | 1060 | if (lockfd >= 0 && close (lockfd) != 0) |
1060 | 1061 | ret = errno; |
| 1062 | #endif |
1061 | 1063 | |
1062 | 1064 | if (ret >= 0) |
1063 | 1065 | { |