]> code.citadel.org Git - citadel.git/blobdiff - citadel/sysdep.c
* once we have an FD we can use it for fchmod
[citadel.git] / citadel / sysdep.c
index b819acca7eb459af80bbe63e8a10ece9ed837375..25fcc774322534f1d0f434dcd6c1ac3069358978 100644 (file)
@@ -407,7 +407,7 @@ int ig_uds_server(char *sockpath, int queue_len, char **errormessage)
                return(-1);
        }
 
-       chmod(sockpath, 0777);
+       fchmod(s, 0777);
        return(s);
 }