Skip to content
Snippets Groups Projects
Commit 1d35c4dc authored by Aaron Griffin's avatar Aaron Griffin
Browse files

Report an error on setmntent failure


Signed-off-by: default avatarAaron Griffin <aaronmgriffin@gmail.com>
parent 970d2e94
No related branches found
No related tags found
No related merge requests found
......@@ -560,11 +560,13 @@ cleanup:
static long long get_freespace()
{
struct mntent *mnt;
char *table = MOUNTED;
const char *table = MOUNTED;
FILE *fp;
long long ret=0;
if((fp = setmntent(table, "r")) == NULL) {
_alpm_log(PM_LOG_ERROR, _("cannot read disk space information from %s: %s"),
table, strerror(errno));
return(-1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment