Date: Friday, March 30, 2007 @ 00:46:17 Author: aaron Path: /home/cvs-pacman/pacman-lib/lib/libalpm Modified: util.c (1.51 -> 1.52) commit 1d35c4dcc6399023217e41eaa8ff4733b1ad2b0d 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> --------+ util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) Index: pacman-lib/lib/libalpm/util.c diff -u pacman-lib/lib/libalpm/util.c:1.51 pacman-lib/lib/libalpm/util.c:1.52 --- pacman-lib/lib/libalpm/util.c:1.51 Thu Mar 22 04:22:48 2007 +++ pacman-lib/lib/libalpm/util.c Fri Mar 30 00:46:17 2007 @@ -560,11 +560,13 @@ 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); }