[PATCH] nscd: Typo in comment
Josef Johansson
josef@oderland.se
Mon Jun 8 15:06:19 GMT 2026
Fixes: https://sourceware.org/bugzilla/show_bug.cgi?id=34240
Signed-off-by: Josef Johansson <josef@oderland.se>
---
nscd/grpcache.c | 2 +-
nscd/hstcache.c | 2 +-
nscd/initgrcache.c | 2 +-
nscd/pwdcache.c | 2 +-
nscd/servicescache.c | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/nscd/grpcache.c b/nscd/grpcache.c
index a05f6fb6e6..5be8a70c79 100644
--- a/nscd/grpcache.c
+++ b/nscd/grpcache.c
@@ -192,7 +192,7 @@ cache_addgr (struct database_dyn *db, int fd, request_header *req,
+ gr_mem_cnt * sizeof (uint32_t)
+ gr_name_len + gr_passwd_len + gr_mem_len_total);
- /* If we refill the cache, first assume the reconrd did not
+ /* If we refill the cache, first assume the record did not
change. Allocate memory on the cache since it is likely
discarded anyway. If it turns out to be necessary to have a
new record we can still allocate real memory. */
diff --git a/nscd/hstcache.c b/nscd/hstcache.c
index 78485fbac3..fe91818640 100644
--- a/nscd/hstcache.c
+++ b/nscd/hstcache.c
@@ -224,7 +224,7 @@ cache_addhst (struct database_dyn *db, int fd, request_header *req,
+ h_aliases_cnt * sizeof (uint32_t)
+ h_addr_list_cnt * hst->h_length);
- /* If we refill the cache, first assume the reconrd did not
+ /* If we refill the cache, first assume the record did not
change. Allocate memory on the cache since it is likely
discarded anyway. If it turns out to be necessary to have a
new record we can still allocate real memory. */
diff --git a/nscd/initgrcache.c b/nscd/initgrcache.c
index ac7b948a46..e5e00b89ee 100644
--- a/nscd/initgrcache.c
+++ b/nscd/initgrcache.c
@@ -245,7 +245,7 @@ addinitgroupsX (struct database_dyn *db, int fd, request_header *req,
total = offsetof (struct dataset, strdata) + start * sizeof (int32_t);
- /* If we refill the cache, first assume the reconrd did not
+ /* If we refill the cache, first assume the record did not
change. Allocate memory on the cache since it is likely
discarded anyway. If it turns out to be necessary to have a
new record we can still allocate real memory. */
diff --git a/nscd/pwdcache.c b/nscd/pwdcache.c
index 715775be2f..29b83fa6be 100644
--- a/nscd/pwdcache.c
+++ b/nscd/pwdcache.c
@@ -186,7 +186,7 @@ cache_addpw (struct database_dyn *db, int fd, request_header *req,
+ pw_name_len + pw_passwd_len
+ pw_gecos_len + pw_dir_len + pw_shell_len);
- /* If we refill the cache, first assume the reconrd did not
+ /* If we refill the cache, first assume the record did not
change. Allocate memory on the cache since it is likely
discarded anyway. If it turns out to be necessary to have a
new record we can still allocate real memory. */
diff --git a/nscd/servicescache.c b/nscd/servicescache.c
index aa8a80d483..d4ec08f3e8 100644
--- a/nscd/servicescache.c
+++ b/nscd/servicescache.c
@@ -180,7 +180,7 @@ cache_addserv (struct database_dyn *db, int fd, request_header *req,
+ s_proto_len
+ s_aliases_cnt * sizeof (uint32_t));
- /* If we refill the cache, first assume the reconrd did not
+ /* If we refill the cache, first assume the record did not
change. Allocate memory on the cache since it is likely
discarded anyway. If it turns out to be necessary to have a
new record we can still allocate real memory. */
--
2.54.0
More information about the Libc-alpha
mailing list