git: ab6a311c720e - main - libc/gen/fts.c: fix assignment

From: Stefan Eßer <se_at_FreeBSD.org>
Date: Thu, 27 Feb 2025 09:36:34 UTC
The branch main has been updated by se:

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

commit ab6a311c720e93c860d3dd4a335264d725db7a0d
Author:     Stefan Eßer <se@FreeBSD.org>
AuthorDate: 2025-02-27 09:29:17 +0000
Commit:     Stefan Eßer <se@FreeBSD.org>
CommitDate: 2025-02-27 09:29:17 +0000

    libc/gen/fts.c: fix assignment
    
    Fix typo in commit e59991206b ("==" instead of "=" for the assignment
    of st_ino).
    
    Reported by:    Coverity Scan CID 1592442
    Approved by:    kib
    Fixes:          e59991206b fts(3): be less strict when automount does its job under us walking autofs mount
---
 lib/libc/gen/fts.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/libc/gen/fts.c b/lib/libc/gen/fts.c
index bd193c7c6cfc..80f98a993123 100644
--- a/lib/libc/gen/fts.c
+++ b/lib/libc/gen/fts.c
@@ -1153,7 +1153,7 @@ fts_safe_changedir(FTS *sp, FTSENT *p, int fd, char *path)
 		}
 		/* autofs might did the mount under us, accept. */
 		p->fts_dev = sb.st_dev;
-		p->fts_ino == sb.st_ino;
+		p->fts_ino = sb.st_ino;
 	}
 	ret = fchdir(newfd);
 bail: