diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2017-05-18 12:28:10 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2017-05-18 12:27:14 +0200 |
commit | 9f6a3c484ee780b0330a24941419c0a99a10ecf8 (patch) | |
tree | 68507f4fd7bd664fd8f03fe3ead5ec40e2aba7f1 /quotaops.c | |
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>
Diffstat (limited to 'quotaops.c')
0 files changed, 0 insertions, 0 deletions