summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc - A. Dahlhaus <mad@wol.de>2009-08-03 13:59:43 +0200
committerDan McGee <dan@archlinux.org>2009-08-03 07:37:44 -0500
commit8152077f6d923f5ff432175a3f86f232fd75919f (patch)
treed5bd822a9e4ab9ba8493b321c8cef673a42a02fc
parentaba58e95abbeef2a9145ec702338def1e4912898 (diff)
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 <mad@wol.de> Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--lib/libalpm/util.c2
1 files changed, 1 insertions, 1 deletions
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");
}
}