summaryrefslogtreecommitdiffstats
path: root/recipes-support/ruby-shadow/files/0001-shadow-update-to-ruby-3.x-str-routines.patch
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2024-10-11 19:48:17 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2024-10-11 20:14:43 +0000
commitd32416d4d8df71f219318084f78cdb37d2926f62 (patch)
tree376d79fbab4ae57229ce2c86d7261dfc700bb13b /recipes-support/ruby-shadow/files/0001-shadow-update-to-ruby-3.x-str-routines.patch
parentdc37ea052ed74321c5244938f8d702372f663776 (diff)
downloadmeta-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.patch30
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 @@
1From 781c51f6bc5da29ca879de42efa55128b04d5772 Mon Sep 17 00:00:00 2001
2From: Bruce Ashfield <bruce.ashfield@gmail.com>
3Date: Fri, 11 Oct 2024 03:34:40 +0000
4Subject: [PATCH] shadow: update to ruby 3.x str routines
5
6Upstream-Status: Inappropriate [embedded specific]
7
8Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
9---
10 shadow/shadow.c | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13diff --git a/shadow/shadow.c b/shadow/shadow.c
14index 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--
292.39.2
30