aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs6rc
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2026-10-05 18:16:38 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2026-10-05 18:16:38 +0000
commit55850e313752497880ffde33870540b0b57814c1 (patch)
treecaaa72d69ca4b14ccd1652f260001e0cc360fa0d /src/libs6rc
parentf706ab3b309a4c9a0425ac23d5ffff7ead48fcb2 (diff)
downloads6-rc-55850e313752497880ffde33870540b0b57814c1.tar.gz
Propagate -L catchall changes to s6-rc-set-commit
s6-rc-set-install is undergoing changes, it might not work properly. The rest is coming this week.
Diffstat (limited to 'src/libs6rc')
-rw-r--r--src/libs6rc/s6rc_read_major.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs6rc/s6rc_read_major.c b/src/libs6rc/s6rc_read_major.c
index 978f29c..2be5121 100644
--- a/src/libs6rc/s6rc_read_major.c
+++ b/src/libs6rc/s6rc_read_major.c
@@ -21,7 +21,7 @@ uint32_t s6rc_read_major (char const *compiled)
memcpy(fn, compiled, clen) ;
memcpy(fn + clen, "/major", 7) ;
r = openreadnclose(fn, tmp, UINT32_FMT) ;
- if (r == -1) return errno == ENOENT ? 6 : 0 ; /* up to 0.6.x.y doesn't have db/major */
+ if (r == -1) return errno == ENOENT ? 7 : 0 ; /* up to 0.7.0.0 doesn't have db/major */
if (!r) return 0 ;
if (tmp[r] != '\n') return (errno = EPROTO, 0) ;
tmp[r] = 0 ;