diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-10-11 19:48:17 +0000 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-10-11 20:14:43 +0000 |
commit | d32416d4d8df71f219318084f78cdb37d2926f62 (patch) | |
tree | 376d79fbab4ae57229ce2c86d7261dfc700bb13b /recipes-support/ruby-shadow/files/0001-shadow-update-to-ruby-3.x-str-routines.patch | |
parent | dc37ea052ed74321c5244938f8d702372f663776 (diff) | |
download | meta-cloud-services-d32416d4d8df71f219318084f78cdb37d2926f62.tar.gz |
ruby-shadow: update and supply extconf.rb
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-support/ruby-shadow/files/0001-shadow-update-to-ruby-3.x-str-routines.patch')
-rw-r--r-- | recipes-support/ruby-shadow/files/0001-shadow-update-to-ruby-3.x-str-routines.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-support/ruby-shadow/files/0001-shadow-update-to-ruby-3.x-str-routines.patch b/recipes-support/ruby-shadow/files/0001-shadow-update-to-ruby-3.x-str-routines.patch new file mode 100644 index 0000000..4c5591d --- /dev/null +++ b/recipes-support/ruby-shadow/files/0001-shadow-update-to-ruby-3.x-str-routines.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 781c51f6bc5da29ca879de42efa55128b04d5772 Mon Sep 17 00:00:00 2001 | ||
2 | From: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
3 | Date: Fri, 11 Oct 2024 03:34:40 +0000 | ||
4 | Subject: [PATCH] shadow: update to ruby 3.x str routines | ||
5 | |||
6 | Upstream-Status: Inappropriate [embedded specific] | ||
7 | |||
8 | Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
9 | --- | ||
10 | shadow/shadow.c | 4 ++-- | ||
11 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
12 | |||
13 | diff --git a/shadow/shadow.c b/shadow/shadow.c | ||
14 | index 35a77a1..314c280 100644 | ||
15 | --- a/shadow/shadow.c | ||
16 | +++ b/shadow/shadow.c | ||
17 | @@ -34,8 +34,8 @@ static VALUE rb_eFileLock; | ||
18 | static VALUE convert_pw_struct( struct spwd *entry ) | ||
19 | { | ||
20 | return rb_struct_new(rb_sPasswdEntry, | ||
21 | - rb_tainted_str_new2(entry->sp_namp), | ||
22 | - rb_tainted_str_new2(entry->sp_pwdp), | ||
23 | + rb_str_new_cstr(entry->sp_namp), | ||
24 | + rb_str_new_cstr(entry->sp_pwdp), | ||
25 | INT2FIX(entry->sp_lstchg), | ||
26 | INT2FIX(entry->sp_min), | ||
27 | INT2FIX(entry->sp_max), | ||
28 | -- | ||
29 | 2.39.2 | ||
30 | |||