aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-12-24 20:56:05 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2025-12-24 20:56:05 +0000
commit6623b6180743596f083e21d319b42f8456975a1d (patch)
tree7a1623f567f2827d2f62e4daab0f513260ccd512
parenta061afdfbcf6f617ccfaaf7574cbd78bc06a28fe (diff)
downloads6-linux-utils-6623b6180743596f083e21d319b42f8456975a1d.tar.gz
Some compilers don't like labels ending compound statements
-rw-r--r--src/s6-linux-utils/fstab2s6rc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/s6-linux-utils/fstab2s6rc.c b/src/s6-linux-utils/fstab2s6rc.c
index bd115cd..c50a9fe 100644
--- a/src/s6-linux-utils/fstab2s6rc.c
+++ b/src/s6-linux-utils/fstab2s6rc.c
@@ -354,10 +354,10 @@ static inline int write_fses (char const *dir, fsent const *tab, unsigned int n,
err1n:
strerr_warnfu2sys("write to ", fn) ;
return 111 ;
- ok1:
}
else if (!openwritenclose_unsafe5(fn, "", 0, 0, 0)) goto err2n ;
+ ok1:
memcpy(fn + dirlen + 2 + slen, "up", 3) ;
fd = open_create(fn) ;
if (fd == -1) { strerr_warnfu3sys("open ", fn, " for writing") ; return 111 ; }
@@ -505,10 +505,10 @@ static inline int write_swaps (char const *dir, swapent const *tab, unsigned int
err1n:
strerr_warnfu2sys("write to ", fn) ;
return 111 ;
- ok1:
}
else if (!openwritenclose_unsafe5(fn, "", 0, 0, 0)) goto err2n ;
+ ok1:
memcpy(fn + dirlen + 2 + slen, "up", 3) ;
fd = open_create(fn) ;
if (fd == -1) { strerr_warnfu3sys("open ", fn, " for writing") ; return 111 ; }