Skip to content

mod_notionflux: Add ifdef for fchmod on FreeBSD (closes #350) #355

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion mod_notionflux/mod_notionflux.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* mod_notionflux/mod_notionflux/mod_notionflux.c
*
* Copyright (c) Tuomo Valkonen 2004-2005.
* Copyright (c) The Notion development team 2019
* Copyright (c) The Notion development team 2019-2023
*
* This is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by
Expand Down Expand Up @@ -328,8 +328,10 @@ static bool start_listening()
if(listenfd<0)
goto errwarn;

#ifndef __FreeBSD__
if(fchmod(listenfd, S_IRUSR|S_IWUSR)<0)
goto errwarn;
#endif

addr.sun_family=AF_UNIX;

Expand Down