mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/etc/etc.c (Init_etc): omit 'passwd' from definition of Etc::Passwd
if HAVE_STRUCT_PASSWD_PW_PASSWD is not defined to prevent mismatch of fields and values in setup_passwd git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4b4ba84eb8
commit
3f236ce7ba
2 changed files with 14 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
Sat Jun 22 14:39:00 2013 Charlie Somerville <charliesome@ruby-lang.org>
|
||||
|
||||
* ext/etc/etc.c (Init_etc): omit 'passwd' from definition of Etc::Passwd
|
||||
if HAVE_STRUCT_PASSWD_PW_PASSWD is not defined to prevent mismatch of
|
||||
fields and values in setup_passwd
|
||||
|
||||
Sat Jun 22 14:35:40 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/dl/cfunc.c (rb_dlcfunc_call): Use rb_big_pack instead of
|
||||
|
|
|
@ -673,11 +673,17 @@ Init_etc(void)
|
|||
rb_define_module_function(mEtc, "systmpdir", etc_systmpdir, 0);
|
||||
|
||||
sPasswd = rb_struct_define(NULL,
|
||||
"name", "passwd", "uid", "gid",
|
||||
"name",
|
||||
#ifdef HAVE_STRUCT_PASSWD_PW_PASSWD
|
||||
"passwd",
|
||||
#endif
|
||||
"uid",
|
||||
"gid",
|
||||
#ifdef HAVE_STRUCT_PASSWD_PW_GECOS
|
||||
"gecos",
|
||||
#endif
|
||||
"dir", "shell",
|
||||
"dir",
|
||||
"shell",
|
||||
#ifdef HAVE_STRUCT_PASSWD_PW_CHANGE
|
||||
"change",
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue