diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-01-21 02:10:06 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-01-21 02:10:06 +0000 |
| commit | 12196fe1bc7791bf36d667af260c037a4f10c591 (patch) | |
| tree | 9dd3b7b02f573bb9fc85706b9f0948e05d822389 /src | |
| parent | a02b163665f3d3d22a12dc0b618355ea3959bf83 (diff) | |
| download | s6-rc-12196fe1bc7791bf36d667af260c037a4f10c591.tar.gz | |
TIL ENOTEMPTY is a thing
Diffstat (limited to 'src')
| -rw-r--r-- | src/repo/s6-rc-repo-init.c | 2 |
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]) ; |
