]> git.ipfire.org Git - thirdparty/systemd.git/commit
Revert "rm-rf: Make sure we rewinddir() before readdir()"
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 23 Oct 2023 11:56:38 +0000 (13:56 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 23 Oct 2023 11:56:38 +0000 (13:56 +0200)
commit59ccbad65eaa9a442b4f0f46bf68a413047ee6e0
treebcc1df8785f7d02ce2f31535366c0a1cbfe1fb2b
parentf04333210b5569112aa998a582ec95a349eff0e0
Revert "rm-rf: Make sure we rewinddir() before readdir()"

This reverts commit 6bbb893b90e2dcb05fb310ba4608f9c9dc587845.

Let's try a different approach where we make sure that all callers only pass in
a fd that is "clean", i.e. at offset 0. The majority of callers of this function
(both direct and indirect) pass a freshly-opened fd, so the rewind call is not
needed.
src/shared/rm-rf.c