* once we have an FD we can use it for fchmod
authorWilfried Göesgens <willi@citadel.org>
Thu, 16 Aug 2007 21:38:22 +0000 (21:38 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 16 Aug 2007 21:38:22 +0000 (21:38 +0000)
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);
 }