- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Info panel can't obtain file system statistics #3277
Comments
Patch for 4.8.13 |
Is the following trivial patch enough?
|
Yes, that'll do. But the variable lockfd is useless when F_RDLCK or F_SETLKW is not defined. |
Actually, most part of mc's mountlist is the mix of gnulib's mountlist and fsusage modules.
Replying to mcermak:
I try keep as much as possible the code taken from gnulib because I sync the mc code with gnulib one. |
Important
This issue was migrated from Trac:
mcermak
(milan.cermak@….com)On Solaris, when an info-panel is displayed, the file system information is not shown. No statistics is shown at all, as if the application can't perform statvfs() call.
# mc -V
GNU Midnight Commander 4.8.13
Built with GLib 2.28.6
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm
With support for X11 events
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, fish
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;
This is due to uninitialized variable lockfd in filemanager/mountlist.c read_file_system_list() function (line 1002). lockfd is intialized in conditionally compiled code (line 1012) but used unconditionally (line 1059). This causes an error and the file system list read from /etc/mnttab is thrown away.
Note
Original attachments:
mcermak
(milan.cermak@….com) onSep 29, 2014 at 12:04 UTC
The text was updated successfully, but these errors were encountered: