Commit 153fc1a3 authored by Ramon Nou's avatar Ramon Nou
Browse files

small update

parent fe47e129
Loading
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -59,8 +59,8 @@ std::atomic<bool> initializing{false};
 */
// Define a debug macro, can be easily disabled

// #define GKFS_TRACE
// #define PATH_SHORTCUT
#define GKFS_TRACE
#define PATH_SHORTCUT

#ifdef GKFS_DEBUG_BUILD
#ifdef GKFS_TRACE
@@ -2404,12 +2404,10 @@ getcwd(char* buffer, size_t size) {
            size = CTX->cwd().size();
        }
        if(CTX->cwd().size() + 1 > size) {
            LOG(ERROR, "{}() buffer too small to host current working dir",
                __func__);
            errno = ERANGE;
            return NULL;
        }
        DEBUG_INFO("[GKFS] Size: {} / CWD {}", size, CTX->cwd().c_str())
        DEBUG_INFO("[GKFS] Size: {} / CWD {}", size, CTX->cwd().c_str());
        strcpy(buffer, CTX->cwd().c_str());
        return buffer;
    }
@@ -2422,8 +2420,6 @@ DLSYM_WRAPPER(void, rewinddir, (DIR * dirstream), (dirstream), "rewinddir")

void
rewinddir(DIR* dirstream) {

    log_argumentsx(dirstream->path);
    initializeGekko();
    if(CTX->interception_enabled() && is_gkfs_fd(dirstream->fd)) {
        DEBUG_INFO("[GKFS] {}", dirstream->fd);