[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fstatat + AT_NO_AUTOMOUNT
From: |
Paul Eggert |
Subject: |
Re: fstatat + AT_NO_AUTOMOUNT |
Date: |
Wed, 9 Mar 2022 15:47:29 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 |
I audited gnulib's uses of fstatat and found one fishy one that doesn't
use AT_NO_AUTOMOUNT, namely, in fts.c where the follow-symlink branch
uses 'stat' whereas the no-follow-symlink branch uses fstatat without
AT_NO_AUTOMOUNT. I installed the first patch to cause it be consistent
in using AT_NO_AUTOMOUNT, which is also consistent with what glibc does
(though this doesn't necessarily mean it's right - perhaps fts should
have a new flag to control automounts, depending on what the user wants).
The second attached patch deprecates statat and lstatat, due to the
confusion already mentioned.
I haven't audited Gnulib's uses of 'stat' and 'lstat'.
0001-fts-be-consistent-about-AT_NO_AUTOMOUNT.patch
Description: Text Data
0002-statat-now-obsolete.patch
Description: Text Data
- fstatat + AT_NO_AUTOMOUNT, Pádraig Brady, 2022/03/07
- Re: fstatat + AT_NO_AUTOMOUNT, Paul Eggert, 2022/03/07
- Re: fstatat + AT_NO_AUTOMOUNT, Pádraig Brady, 2022/03/07
- Re: fstatat + AT_NO_AUTOMOUNT, Paul Eggert, 2022/03/07
- Re: fstatat + AT_NO_AUTOMOUNT, Pádraig Brady, 2022/03/07
- Re: fstatat + AT_NO_AUTOMOUNT, Paul Eggert, 2022/03/07
- Re: fstatat + AT_NO_AUTOMOUNT, Pádraig Brady, 2022/03/07
- Re: fstatat + AT_NO_AUTOMOUNT, Paul Eggert, 2022/03/07
- Re: fstatat + AT_NO_AUTOMOUNT,
Paul Eggert <=
- Re: fstatat + AT_NO_AUTOMOUNT, Andreas Schwab, 2022/03/10
- [PATCH] fix descriptions for AT_NO_AUTOMOUNT, Pádraig Brady, 2022/03/10
- Re: [PATCH] fix descriptions for AT_NO_AUTOMOUNT, Paul Eggert, 2022/03/10
- Re: [PATCH] fix descriptions for AT_NO_AUTOMOUNT, Pádraig Brady, 2022/03/10
- Re: [PATCH] fix descriptions for AT_NO_AUTOMOUNT, Paul Eggert, 2022/03/10
- Re: [PATCH] fix descriptions for AT_NO_AUTOMOUNT, Alejandro Colomar (man-pages), 2022/03/14
- Re: [PATCH] fix descriptions for AT_NO_AUTOMOUNT, Pádraig Brady, 2022/03/14
- Re: [PATCH] fix descriptions for AT_NO_AUTOMOUNT, Alejandro Colomar (man-pages), 2022/03/14
- Re: [PATCH] fix descriptions for AT_NO_AUTOMOUNT, Alejandro Colomar (man-pages), 2022/03/14
- Re: fstatat + AT_NO_AUTOMOUNT, Bernhard Voelker, 2022/03/08