diff options
| author | Vineet Kumar <git@vineetk.net> | 2026-06-15 14:54:51 -0400 |
|---|---|---|
| committer | Vineet Kumar <git@vineetk.net> | 2026-06-15 14:54:51 -0400 |
| commit | e81f04fa53e7e01afdc834d9c22b5c982c98f59b (patch) | |
| tree | 763d6d68516ca9d184ddd2402978adcc4027a99d /lang/ruby/3.2/patches/patch-ext_etc_etc_c | |
| parent | 92e45e47c29ec037842c4a34ebc0c14143d413ff (diff) | |
This is due to the following two reasons:
1. it's very out of date compared with current ports tree (like by 2+
years!)
- some of the ports here were mainly just updates I didn't upstream,
which have since now been part of openbsd, like verilator
2. removing dependencies is a lot of headache to stay in sync and/or for
ports I no longer use
- e.g. dbus is very difficult to remove in a desktop while patching
to remove from gtk and downstream
- I don't want to spend more time reducing number of dependencies
when I can be working instead. I no longer have as much free time
as I did in high school :(
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 | ||
