aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2026-01-21 02:10:06 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2026-01-21 02:10:06 +0000
commit12196fe1bc7791bf36d667af260c037a4f10c591 (patch)
tree9dd3b7b02f573bb9fc85706b9f0948e05d822389 /src
parenta02b163665f3d3d22a12dc0b618355ea3959bf83 (diff)
downloads6-rc-12196fe1bc7791bf36d667af260c037a4f10c591.tar.gz
TIL ENOTEMPTY is a thing
Diffstat (limited to 'src')
-rw-r--r--src/repo/s6-rc-repo-init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repo/s6-rc-repo-init.c b/src/repo/s6-rc-repo-init.c
index 933ea67..fd3b916 100644
--- a/src/repo/s6-rc-repo-init.c
+++ b/src/repo/s6-rc-repo-init.c
@@ -142,7 +142,7 @@ int main (int argc, char const *const *argv)
if (rename(repotmp, wgola[GOLA_REPODIR]) == -1)
{
- if (errno != EEXIST || !(wgolb & GOLB_FORCE))
+ if ((errno != EEXIST && errno != ENOTEMPTY) || !(wgolb & GOLB_FORCE))
{
cleanup(repotmp) ;
strerr_diefu4sys(111, "rename ", repotmp, " to ", wgola[GOLA_REPODIR]) ;