commit | 9f6a3c484ee780b0330a24941419c0a99a10ecf8 | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Thu May 18 12:28:10 2017 +0300 |
committer | Jan Kara <jack@suse.cz> | Thu May 18 12:27:14 2017 +0200 |
tree | 68507f4fd7bd664fd8f03fe3ead5ec40e2aba7f1 | |
parent | 579425d669eb4df2ae26ceb70dfb9380c38fb521 [diff] |
quotacheck: change to the directory before opening it, not after This avoids the race between opening the directory being scanned and changing into that directory for processing its contants. This is not the only race of that kind, but chdir return code has to be checked anyway and the fix costs nothing, so let it be fixed. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: Jan Kara <jack@suse.cz>