Commit 65bb1460 authored by Ramon Nou's avatar Ramon Nou Committed by Ramon Nou
Browse files

Enable GLIBC option"

parent 8dccc6c1
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -238,6 +238,10 @@ gkfs_define_option(
gkfs_define_option(
    GKFS_BUILD_USER_LIB
    HELP_TEXT "Compile user lib"
#build libc
gkfs_define_option(
    GKFS_BUILD_LIBC_INTERCEPTION
    HELP_TEXT "Compile libc interception"
    DEFAULT_VALUE ON
)

+2 −4
Original line number Diff line number Diff line
@@ -1840,7 +1840,7 @@ chdir(const char* path) {
    int ret = -1;
    initializeGekko();
    // is the path from gekkofs
    return gkfs::hook::hook_chdir(path);
 //   return gkfs::hook::hook_chdir(path);
    /*
    if(CTX->interception_enabled()) {
        std::string resolved;
@@ -1859,12 +1859,10 @@ chdir(const char* path) {
                break;
        }
    }

*/
    // call the real chdir function
    ret = dlsym_chdir((char*) path);

    debug_info("[BYPASS] << After chdir()\n");
    */

    return ret;
}