@@ -56,8 +56,8 @@ static VALUE convert_pw_struct( struct passwd *entry )
5656{
5757 /* Hmm. Why custom pw_change instead of sp_lstchg? */
5858 return rb_struct_new (rb_sPasswdEntry ,
59- rb_tainted_str_new2 (entry -> pw_name ), /* sp_namp */
60- rb_tainted_str_new2 (entry -> pw_passwd ), /* sp_pwdp, encryped password */
59+ rb_str_new2 (entry -> pw_name ), /* sp_namp */
60+ rb_str_new2 (entry -> pw_passwd ), /* sp_pwdp, encryped password */
6161 Qnil , /* sp_lstchg, date when the password was last changed (in days since Jan 1, 1970) */
6262 Qnil , /* sp_min, days that password must stay same */
6363 Qnil , /* sp_max, days until password changes. */
@@ -66,7 +66,7 @@ static VALUE convert_pw_struct( struct passwd *entry )
6666 INT2FIX (difftime (entry -> pw_change , 0 ) / (24 * 60 * 60 )), /* pw_change */
6767 INT2FIX (difftime (entry -> pw_expire , 0 ) / (24 * 60 * 60 )), /* sp_expire */
6868 Qnil , /* sp_flag */
69- rb_tainted_str_new2 (entry -> pw_class ), /* sp_loginclass, user access class */
69+ rb_str_new2 (entry -> pw_class ), /* sp_loginclass, user access class */
7070 NULL );
7171}
7272
0 commit comments