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