blob: 4c5591d38d7a070c5f2209eafa534e876cb523eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
From 781c51f6bc5da29ca879de42efa55128b04d5772 Mon Sep 17 00:00:00 2001
From: Bruce Ashfield <bruce.ashfield@gmail.com>
Date: Fri, 11 Oct 2024 03:34:40 +0000
Subject: [PATCH] shadow: update to ruby 3.x str routines
Upstream-Status: Inappropriate [embedded specific]
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
---
shadow/shadow.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/shadow/shadow.c b/shadow/shadow.c
index 35a77a1..314c280 100644
--- a/shadow/shadow.c
+++ b/shadow/shadow.c
@@ -34,8 +34,8 @@ static VALUE rb_eFileLock;
static VALUE convert_pw_struct( struct spwd *entry )
{
return rb_struct_new(rb_sPasswdEntry,
- rb_tainted_str_new2(entry->sp_namp),
- rb_tainted_str_new2(entry->sp_pwdp),
+ rb_str_new_cstr(entry->sp_namp),
+ rb_str_new_cstr(entry->sp_pwdp),
INT2FIX(entry->sp_lstchg),
INT2FIX(entry->sp_min),
INT2FIX(entry->sp_max),
--
2.39.2
|