Mercurial > hg > dhcpcd
changeset 5036:52dd608e14b5 draft
compat: Fix a typo in pidfile when O_CLOEXEC is not defined
While here, include fcntl.h in if.c for older environments.
| author | Petr Gotthard <petr.gotthard@advantech-bb.cz> |
|---|---|
| date | Wed, 05 Feb 2020 15:35:44 +0000 |
| parents | d8f63eaa4d2b |
| children | 1e35e845790a |
| files | compat/pidfile.c src/if.c |
| diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/compat/pidfile.c Wed Feb 05 15:10:44 2020 +0000 +++ b/compat/pidfile.c Wed Feb 05 15:35:44 2020 +0000 @@ -208,7 +208,7 @@ goto return_pid; #ifndef O_CLOEXEC if ((opts = fcntl(fd, F_GETFD)) == -1 || - fctnl(fd, F_SETFL, opts | FD_CLOEXEC) == -1) + fcntl(fd, F_SETFL, opts | FD_CLOEXEC) == -1) { int error = errno;
