diff options
Diffstat (limited to 'lang/ruby/3.2/patches/patch-ext_etc_etc_c')
| -rw-r--r-- | lang/ruby/3.2/patches/patch-ext_etc_etc_c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lang/ruby/3.2/patches/patch-ext_etc_etc_c b/lang/ruby/3.2/patches/patch-ext_etc_etc_c deleted file mode 100644 index 0d9265a..0000000 --- a/lang/ruby/3.2/patches/patch-ext_etc_etc_c +++ /dev/null | |||
| @@ -1,23 +0,0 @@ | |||
| 1 | Use shadow versions of password functions. | ||
| 2 | |||
| 3 | Index: ext/etc/etc.c | ||
| 4 | --- ext/etc/etc.c.orig | ||
| 5 | +++ ext/etc/etc.c | ||
| 6 | @@ -223,7 +223,7 @@ etc_getpwuid(int argc, VALUE *argv, VALUE obj) | ||
| 7 | else { | ||
| 8 | uid = getuid(); | ||
| 9 | } | ||
| 10 | - pwd = getpwuid(uid); | ||
| 11 | + pwd = getpwuid_shadow(uid); | ||
| 12 | if (pwd == 0) rb_raise(rb_eArgError, "can't find user for %d", (int)uid); | ||
| 13 | return setup_passwd(pwd); | ||
| 14 | #else | ||
| 15 | @@ -253,7 +253,7 @@ etc_getpwnam(VALUE obj, VALUE nam) | ||
| 16 | struct passwd *pwd; | ||
| 17 | const char *p = StringValueCStr(nam); | ||
| 18 | |||
| 19 | - pwd = getpwnam(p); | ||
| 20 | + pwd = getpwnam_shadow(p); | ||
| 21 | if (pwd == 0) rb_raise(rb_eArgError, "can't find user for %"PRIsVALUE, nam); | ||
| 22 | return setup_passwd(pwd); | ||
| 23 | #else | ||
