aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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]) ;