TCF Agent: allow get_user_home() to return "/"
diff --git a/agent/tcf/services/filesystem.c b/agent/tcf/services/filesystem.c
index 4796225..e8e225a 100644
--- a/agent/tcf/services/filesystem.c
+++ b/agent/tcf/services/filesystem.c
@@ -661,7 +661,9 @@
     }
 #endif
     if (path[0] != '/') {
-        snprintf(buf, sizeof(buf), "%s/%s", get_user_home(), path);
+        const char * home = get_user_home();
+        if (strcmp(home, "/") == 0) home = "";
+        snprintf(buf, sizeof(buf), "%s/%s", home, path);
         strlcpy(path, buf, size);
         for (i = 0; path[i] != 0; i++) {
             if (path[i] == '\\') path[i] = '/';