diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/ldconfig.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/ldconfig.c b/utils/ldconfig.c index a5d3ce67c..0abd0613e 100644 --- a/utils/ldconfig.c +++ b/utils/ldconfig.c @@ -918,6 +918,7 @@ int main(int argc, char **argv) if (chroot(chroot_dir) < 0) { if (chdir(chroot_dir) < 0) err(EXIT_FATAL, "couldn't chroot to %s (%s)", chroot_dir, strerror(errno)); + chroot_dir = "."; } else { if (chdir("/") < 0) err(EXIT_FATAL, "couldn't chdir to / (%s)", strerror(errno)); |