namei: clear internal flags in NDREINIT()

same as it is done for NDRESTART()

Fixes:  e05e33041c
Reported and tested by:	pho
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov
2025-05-29 00:51:42 +03:00
parent 82c41c9ffc
commit 58b2bd33af
+1
View File
@@ -266,6 +266,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 { \