From 8152077f6d923f5ff432175a3f86f232fd75919f Mon Sep 17 00:00:00 2001 From: "Marc - A. Dahlhaus" Date: Mon, 3 Aug 2009 13:59:43 +0200 Subject: Use full path to ldconfig If /sbin is not in the PATH and sudo is used, ldconfig cannot be found. So use /sbin/ldconfig instead. The code checked for the existence of /sbin/ldconfig anyway.. Signed-off-by: Marc - A. Dahlhaus Signed-off-by: Xavier Chantry Signed-off-by: Dan McGee --- lib/libalpm/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index e56efb17..0aa05b28 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -562,7 +562,7 @@ int _alpm_ldconfig(const char *root) if(access(line, F_OK) == 0) { snprintf(line, PATH_MAX, "%ssbin/ldconfig", root); if(access(line, X_OK) == 0) { - _alpm_run_chroot(root, "ldconfig"); + _alpm_run_chroot(root, "/sbin/ldconfig"); } } -- cgit v1.2.3-24-g4f1b From 4fa6f262a66336240b6e792955dcd38f04753bf2 Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Tue, 28 Jul 2009 17:07:51 +0200 Subject: Add a missing newline. Signed-off-by: Xavier Chantry Signed-off-by: Dan McGee --- lib/libalpm/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index 0aa05b28..082c095b 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -509,7 +509,7 @@ int _alpm_run_chroot(const char *root, const char *cmd) umask(0022); pipe = popen(cmd, "r"); if(!pipe) { - _alpm_log(PM_LOG_ERROR, _("call to popen failed (%s)"), + _alpm_log(PM_LOG_ERROR, _("call to popen failed (%s)\n"), strerror(errno)); exit(1); } -- cgit v1.2.3-24-g4f1b