diff options
| author | Waldemar Brodkorb <wbx@openadk.org> | 2013-11-29 16:06:00 +0100 |
|---|---|---|
| committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-11-29 16:06:00 +0100 |
| commit | 8e8512391c668fc7074f812f15eabe8f176fb01e (patch) | |
| tree | f9f0862dd6eb962fe3fc4803180b431843f6c5be /package/ruby-ldap/patches/patch-rbldap_h | |
| parent | c491653a1f9574a42965025805d472c3d145f699 (diff) | |
| parent | ae3d4616ed9c19a29d656193254657f93d612fa2 (diff) | |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/ruby-ldap/patches/patch-rbldap_h')
| -rw-r--r-- | package/ruby-ldap/patches/patch-rbldap_h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/package/ruby-ldap/patches/patch-rbldap_h b/package/ruby-ldap/patches/patch-rbldap_h new file mode 100644 index 000000000..6e4e68dd7 --- /dev/null +++ b/package/ruby-ldap/patches/patch-rbldap_h @@ -0,0 +1,23 @@ +--- ruby-ldap-0.9.8.orig/rbldap.h 2009-03-25 10:25:27.000000000 +0100 ++++ ruby-ldap-0.9.8/rbldap.h 2013-10-26 23:33:03.000000000 +0200 +@@ -162,16 +162,18 @@ VALUE rb_ldap_mod_vals (VALUE); + RB_LDAPENTRY_DATA *ptr; \ + Data_Get_Struct(obj, struct rb_ldapmsg_data, ptr); \ + if( ! ptr->msg ){ \ ++ VALUE value = rb_inspect(obj); \ + rb_raise(rb_eLDAP_InvalidEntryError, "%s is not a valid entry", \ +- STR2CSTR(rb_inspect(obj))); \ ++ StringValuePtr(value)); \ + }; \ + } + + #define GET_LDAPENTRY_DATA(obj,ptr) { \ + Data_Get_Struct(obj, struct rb_ldapentry_data, ptr); \ + if( ! ptr->msg ){ \ ++ VALUE value = rb_inspect(obj); \ + rb_raise(rb_eLDAP_InvalidEntryError, "%s is not a valid entry", \ +- STR2CSTR(rb_inspect(obj))); \ ++ StringValuePtr(value)); \ + }; \ + } + |
