src/server/daemon/acl.c

changeset 702
ee80191310ca
parent 660
f00d03835dd9
--- a/src/server/daemon/acl.c	Mon Feb 23 22:28:44 2026 +0100
+++ b/src/server/daemon/acl.c	Tue Feb 24 12:28:58 2026 +0100
@@ -332,12 +332,12 @@
                 return 0;
             }
         }
-        cxmutstr wd = cx_str(cwd);
-        cxmutstr pp = cx_str((char*)path);
+        cxmutstr wd = cx_mutstr(cwd);
+        cxmutstr pp = cx_mutstr((char*)path);
 
         p = cx_strcat(CX_NULLSTR, 3, wd, cx_strn("/", 1), pp);
     } else {
-        p = cx_strdup(cx_str((char*)path));
+        p = cx_strdup(path);
     }
     if(p.ptr[p.length-1] == '/') {
         p.ptr[p.length-1] = 0;

mercurial