From 12196fe1bc7791bf36d667af260c037a4f10c591 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 21 Jan 2026 02:10:06 +0000 Subject: TIL ENOTEMPTY is a thing --- src/repo/s6-rc-repo-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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]) ; -- cgit v1.3.1