[prev in list] [next in list] [prev in thread] [next in thread]
List: klik-devel
Subject: [klik-devel] [klikclient commit] r1626 -
From: codesite-noreply () google ! com
Date: 2008-07-31 17:28:27
Message-ID: 0016e64355de75928c0453553375 () google ! com
[Download RAW message or body]
Author: lionel.tricon
Date: Fri Jul 25 08:13:03 2008
New Revision: 1626
Modified:
trunk/client/trunk/kfakechroot/src/libfakechroot.c
Log:
Should fix issue 246
Very stupid bug indeed ; i discovered (thanks to strace) that a system
call was done outside LD_PRELOAD. Why ? because i forgot to initialize
the list of library call redirection when the first function
instantiate was readlink .... sigh!
Works now for :
quodlibet
Modified: trunk/client/trunk/kfakechroot/src/libfakechroot.c
==============================================================================
--- trunk/client/trunk/kfakechroot/src/libfakechroot.c (original)
+++ trunk/client/trunk/kfakechroot/src/libfakechroot.c Fri Jul 25
08:13:03 2008
@@ -2241,6 +2241,7 @@
narrow_chroot_path(path, fakechroot_path, fakechroot_ptr);
if (getenv("FAKECHROOT_DEBUG")) fprintf(stderr, "# narrow_chroot_path
readlink(%s)\n", path);
+ if (next_opendir == NULL) fakechroot_init();
if (fakechroot_localdir(path)) v_dir=next_opendir("/");
else v_dir=next_opendir(getenv("FAKECHROOT_BASE"));
if (v_dir != NULL) {
@@ -2260,6 +2261,7 @@
closedir(v_dir);
}
+ if (next_rename == NULL) fakechroot_init();
if ((v_status = next_readlink(path, tmp, bufsiz)) == -1) return v_status;
tmp[v_status] = '\0';
_______________________________________________
klik-devel mailing list
klik-devel@kde.org
https://mail.kde.org/mailman/listinfo/klik-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic