]> git.ipfire.org Git - thirdparty/util-linux.git/commit
agetty: Always call chdir after chroot
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 7 Apr 2026 18:33:30 +0000 (20:33 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 7 Apr 2026 18:33:30 +0000 (20:33 +0200)
commite966f2e93c1c4e4b43e34ae1bfdebe728efb04f8
treecf4d399b3171e47bed11c37f2b72bd8ef3948b3e
parent20ed6b9924feda26804dc8131899f39419d91453
agetty: Always call chdir after chroot

Since chroot only changes the root directory but not current working
directory, change the current working directory as well. This rebases
all possible future relative paths into the chroot environment as well.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
term-utils/agetty.c