diff options
author | Aaron Griffin <aaron@archlinux.org> | 2007-03-30 06:46:17 +0200 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2007-03-30 06:46:17 +0200 |
commit | 19cec12f731d842cad9696e7eef88039d6c0e8c8 (patch) | |
tree | 5bb881e748258d2d6d05474cde6e030bd4881204 | |
parent | a0f8f03056e0611bcedb9505ea7753830171d499 (diff) | |
download | pacman-19cec12f731d842cad9696e7eef88039d6c0e8c8.tar.gz pacman-19cec12f731d842cad9696e7eef88039d6c0e8c8.tar.xz |
Author: Aaron Griffin <aaronmgriffin@gmail.com>
Date: Thu Mar 29 22:44:10 2007 -0500
Report an error on setmntent failure
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rw-r--r-- | lib/libalpm/util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index daaa8c76..decb5959 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -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); } |