summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/ruby-shadow/files/ruby-shadow-1.4.1-debian.patch')
-rw-r--r--dev-ruby/ruby-shadow/files/ruby-shadow-1.4.1-debian.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/ruby-shadow/files/ruby-shadow-1.4.1-debian.patch b/dev-ruby/ruby-shadow/files/ruby-shadow-1.4.1-debian.patch
new file mode 100644
index 000000000000..2e56fffeaa65
--- /dev/null
+++ b/dev-ruby/ruby-shadow/files/ruby-shadow-1.4.1-debian.patch
@@ -0,0 +1,51 @@
+--- libshadow-ruby-1.4.1.orig/shadow.c
++++ libshadow-ruby-1.4.1/shadow.c
+@@ -60,7 +60,7 @@
+ INT2FIX(entry->sp_inact),
+ INT2FIX(entry->sp_expire),
+ INT2FIX(entry->sp_flag),
+- 0);
++ NULL);
+ free(entry);
+ return result;
+ };
+@@ -89,7 +89,7 @@
+ INT2FIX(entry->sp_inact),
+ INT2FIX(entry->sp_expire),
+ INT2FIX(entry->sp_flag),
+- 0);
++ NULL);
+ return result;
+ };
+
+@@ -114,7 +114,7 @@
+ INT2FIX(entry->sp_inact),
+ INT2FIX(entry->sp_expire),
+ INT2FIX(entry->sp_flag),
+- 0);
++ NULL);
+ return result;
+ };
+
+@@ -142,7 +142,7 @@
+ INT2FIX(entry->sp_inact),
+ INT2FIX(entry->sp_expire),
+ INT2FIX(entry->sp_flag),
+- 0);
++ NULL);
+ return result;
+ };
+
+@@ -254,10 +254,10 @@
+ rb_sPasswdEntry = rb_struct_define("PasswdEntry",
+ "sp_namp","sp_pwdp","sp_lstchg",
+ "sp_min","sp_max","sp_warn",
+- "sp_inact","sp_expire","sp_flag",0);
++ "sp_inact","sp_expire","sp_flag",NULL);
+ rb_sGroupEntry = rb_struct_define("GroupEntry",
+ "sg_name","sg_passwd",
+- "sg_adm","sg_mem",0);
++ "sg_adm","sg_mem",NULL);
+
+ rb_mShadow = rb_define_module("Shadow");
+ rb_eFileLock = rb_define_class_under(rb_mShadow,"FileLock",rb_eException);