diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2025-05-28 21:51:42 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2025-06-30 14:19:30 +0000 |
| commit | 53963866f7088dd96f6d56169e6b4fb899277306 (patch) | |
| tree | d529c076f5ec3a6b3a7faaf62db9ab81fcf8d6c3 | |
| parent | a66767844690dfd82e14df2d22bd9bc40e46546b (diff) | |
namei: clear internal flags in NDREINIT()
same as it is done for NDRESTART()
Fixes: e05e33041c252
Reported and tested by: pho
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 58b2bd33aff71c0268d99d63e9c83f6544d3beb3)
| -rw-r--r-- | sys/sys/namei.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/namei.h b/sys/sys/namei.h index 5e9a5bf4a699..7033e5469240 100644 --- a/sys/sys/namei.h +++ b/sys/sys/namei.h @@ -265,6 +265,7 @@ do { \ filecaps_free(&_ndp->ni_filecaps); \ _ndp->ni_resflags = 0; \ _ndp->ni_startdir = NULL; \ + _ndp->ni_cnd.cn_flags &= ~NAMEI_INTERNAL_FLAGS; \ } while (0) #define NDPREINIT(ndp) do { \ |
