diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-01 20:39:43 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-01 20:39:43 +0100 |
commit | b12be99c8925e758554076c87294b4af10ebf05e (patch) | |
tree | ea06116e3fcb5933dad83ebb91a006fa71a77410 /lib/libalpm/po/remove-potcdate.sin | |
parent | 09ce8b446c01e59a0eb0523846ce6f339ef25fa5 (diff) | |
download | pacman-b12be99c8925e758554076c87294b4af10ebf05e.tar.gz pacman-b12be99c8925e758554076c87294b4af10ebf05e.tar.xz |
Ensure d_type is not DT_UNKNOWN before relying on it
Fixes FS#23090, a rather serious problem where the user was completely
unable to read the local database. Even if entry->d_type is available,
the given filesystem providing it may not fill the contents, in which
case we should fall back to a stat() as we did before. In this case, the
filesystem was XFS but there may be others.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/po/remove-potcdate.sin')
0 files changed, 0 insertions, 0 deletions