Skip to content

Commit 3afb584

Browse files
no1wuditgross35
authored andcommitted
feat: add pw_passwd field to passwd struct in NuttX
Signed-off-by: Huang Qi <huangqi3@xiaomi.com> (backport <rust-lang#4222>) (cherry picked from commit ec9ea22)
1 parent 0dfa71c commit 3afb584

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/nuttx/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ s! {
5252

5353
pub struct passwd {
5454
pub pw_name: *const c_char,
55+
pub pw_passwd: *const c_char,
5556
pub pw_uid: u32,
5657
pub pw_gid: u32,
5758
pub pw_gecos: *const c_char,
@@ -245,6 +246,7 @@ s! {
245246
// for example, struct passwd, https://pubs.opengroup.org/onlinepubs/009695399/basedefs/pwd.h.html,
246247
// POSIX only defines following fields in struct passwd:
247248
// char *pw_name User's login name.
249+
// char *pw_passwd Encrypted password.
248250
// uid_t pw_uid Numerical user ID.
249251
// gid_t pw_gid Numerical group ID.
250252
// char *pw_dir Initial working directory.

0 commit comments

Comments
 (0)