Skip to content

Commit ec9ea22

Browse files
committed
feat: add pw_passwd field to passwd struct in NuttX
Signed-off-by: Huang Qi <[email protected]>
1 parent 4869273 commit ec9ea22

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
@@ -54,6 +54,7 @@ s! {
5454

5555
pub struct passwd {
5656
pub pw_name: *const c_char,
57+
pub pw_passwd: *const c_char,
5758
pub pw_uid: u32,
5859
pub pw_gid: u32,
5960
pub pw_gecos: *const c_char,
@@ -247,6 +248,7 @@ s! {
247248
// for example, struct passwd, https://pubs.opengroup.org/onlinepubs/009695399/basedefs/pwd.h.html,
248249
// POSIX only defines following fields in struct passwd:
249250
// char *pw_name User's login name.
251+
// char *pw_passwd Encrypted password.
250252
// uid_t pw_uid Numerical user ID.
251253
// gid_t pw_gid Numerical group ID.
252254
// char *pw_dir Initial working directory.

0 commit comments

Comments
 (0)