From 7d5dca4043b5f4ff94cd6033fccd4eadb3610a66 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 28 Sep 2007 23:21:56 -0500 Subject: libalpm/be_files: Fix outdated code setting path for lastupdate file The code for setting the lastupdate file path still referenced both the root and dbpath, when we should only be using dbpath. Fix it. Signed-off-by: Dan McGee --- lib/libalpm/be_files.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/libalpm/be_files.c b/lib/libalpm/be_files.c index 06891ef5..2bfdb956 100644 --- a/lib/libalpm/be_files.c +++ b/lib/libalpm/be_files.c @@ -745,7 +745,7 @@ int _alpm_db_getlastupdate(const pmdb_t *db, char *ts) return(-1); } - snprintf(file, PATH_MAX, "%s%s.lastupdate", handle->root, db->path); + snprintf(file, PATH_MAX, "%s.lastupdate", db->path); /* get the last update time, if it's there */ if((fp = fopen(file, "r")) == NULL) { @@ -777,7 +777,7 @@ int _alpm_db_setlastupdate(const pmdb_t *db, char *ts) return(-1); } - snprintf(file, PATH_MAX, "%s%s.lastupdate", handle->root, db->path); + snprintf(file, PATH_MAX, "%s.lastupdate", db->path); if((fp = fopen(file, "w")) == NULL) { return(-1); -- cgit v1.2.3-24-g4f1b