index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2013-01-20 21:56:57 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2013-01-28 23:38:46 +1000 |
commit | 89ecf8cabebfd13e50473fba7fb98f65a52b02d8 (patch) | |
tree | bb640857b2eb0d89ac3af16fcd4c02868e2acf22 /lib | |
parent | e3d8197d67336b6e59ee184762271cf64431aca6 (diff) |
-rw-r--r-- | lib/libalpm/util.c | 4 |
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c index c88326f2..7d9ee635 100644 --- a/lib/libalpm/util.c +++ b/lib/libalpm/util.c @@ -621,12 +621,12 @@ int _alpm_ldconfig(alpm_handle_t *handle) snprintf(line, PATH_MAX, "%setc/ld.so.conf", handle->root); if(access(line, F_OK) == 0) { - snprintf(line, PATH_MAX, "%ssbin/ldconfig", handle->root); + snprintf(line, PATH_MAX, "%s%s", handle->root, LDCONFIG); if(access(line, X_OK) == 0) { char arg0[32]; char *argv[] = { arg0, NULL }; strcpy(arg0, "ldconfig"); - return _alpm_run_chroot(handle, "/sbin/ldconfig", argv); + return _alpm_run_chroot(handle, LDCONFIG, argv); } } |