diff --git a/lsyncd.c b/lsyncd.c index 5a6c791..f81afb1 100644 --- a/lsyncd.c +++ b/lsyncd.c @@ -164,7 +164,7 @@ get_realpath(const char * rpath) { // uses c-library to get the absolute path #ifdef __GLIBC__ // in case of GLIBC the task is easy. - return realpath(path, NULL); + return realpath(rpath, NULL); #else # warning having to use old style realpath() // otherwise less so and requires PATH_MAX limit.