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>
This commit is contained in:
Marc - A. Dahlhaus 2009-08-03 13:59:43 +02:00 committed by Dan McGee
parent aba58e95ab
commit 8152077f6d
1 changed files with 1 additions and 1 deletions

View File

@ -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");
}
}