diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2022-07-28 14:02:11 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2022-07-28 14:02:11 +0000 |
commit | 9fa760e14ee2aa97a2ec281fce2169fcf7e2754d (patch) | |
tree | 2970a0b40c5da328b2cc76c09f5f07ecb46e66d2 /src | |
parent | a819ad514ecd12d93a93681c44835b2fbed8c3fc (diff) | |
download | s6-rc-9fa760e14ee2aa97a2ec281fce2169fcf7e2754d.tar.xz |
... but do it with the correct logic
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/libs6rc/s6rc_lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs6rc/s6rc_lock.c b/src/libs6rc/s6rc_lock.c index 912c640..7762ea7 100644 --- a/src/libs6rc/s6rc_lock.c +++ b/src/libs6rc/s6rc_lock.c @@ -34,7 +34,7 @@ int s6rc_lock (char const *live, int lwhat, int *llfd, char const *compiled, int memcpy(cfn + clen, "/lock", 6) ; cfd = open(cfn, O_RDWR | O_CREAT | O_TRUNC | O_NONBLOCK | O_CLOEXEC, 0644) ; if (cfd < 0) - if (cwhat > 1 || (errno != EROFS || errno != EPERM)) goto lerr ; + if (cwhat > 1 || (errno != EROFS && errno != EPERM)) goto lerr ; else cfd = -errno ; else { |