Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 May 2025 14:23:02 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 58b2bd33aff7 - main - namei: clear internal flags in NDREINIT()
Message-ID:  <202505291423.54TEN2I6009183@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=58b2bd33aff71c0268d99d63e9c83f6544d3beb3

commit 58b2bd33aff71c0268d99d63e9c83f6544d3beb3
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-05-28 21:51:42 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-05-29 14:22:49 +0000

    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
---
 sys/sys/namei.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/sys/namei.h b/sys/sys/namei.h
index 4a16ec923bd8..eda3cc9b6f24 100644
--- a/sys/sys/namei.h
+++ b/sys/sys/namei.h
@@ -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 {							\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202505291423.54TEN2I6009183>