simon-git: agedu (master): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Mon Sep 17 13:58:05 BST 2018
TL;DR:
80c7beb Tolerate duplicate file names returned from readdir().
Repository: https://git.tartarus.org/simon/agedu.git
On the web: https://git.tartarus.org/?p=simon/agedu.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2018-09-17 13:58:05
commit 80c7beb423ce1f2e4de880fcdab58b2d0df68539
web diff https://git.tartarus.org/?p=simon/agedu.git;a=commitdiff;h=80c7beb423ce1f2e4de880fcdab58b2d0df68539;hp=5b1279114fd3d5396e4e58da498f81402a955022
Author: Simon Tatham <anakin at pobox.com>
Date: Mon Sep 17 13:55:02 2018 +0100
Tolerate duplicate file names returned from readdir().
A user reports that this can happen using the 'gluster' network
filesystem, and also I think it's at least _imaginable_ that it might
happen if a directory is updated by another process while agedu is
half way through readdir()ing it - at least, POSIX doesn't seem to
contain any text promising that that won't happen, so it's possible in
principle even if most implementations in practice manage to avoid it.
If it does happen, we just have to treat it the same as there being
one copy of that file name in the directory (since any attempt to open
the file or even stat it for its inode would have to use the name as
the lookup key).
du.c | 9 +++++++++
1 file changed, 9 insertions(+)
More information about the tartarus-commits
mailing list