]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/copy: rewind dir fd before using it for cleanup 29677/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 23 Oct 2023 12:06:32 +0000 (14:06 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 24 Oct 2023 11:37:10 +0000 (13:37 +0200)
commite3b84b105e632731352776fd619bbbea4d223b35
tree89f745203767b0f522e7663e3114ba14eed261eb
parent59ccbad65eaa9a442b4f0f46bf68a413047ee6e0
shared/copy: rewind dir fd before using it for cleanup

This seems to be the only place where rm_rf_children() is called with a
possibly used fd, which is then passed through to rm_rf_children_impl().

This also fixes #29606.
(Tested on Fedora rawhide with kernel 6.5.6-300.fc39.x86_64.)
src/shared/copy.c
src/shared/rm-rf.h