[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
slapi_entry_attr_get_uint et al type bug (ITS#3166)
Full_Name: Martin Evans
Version: 2.2.11
OS: Linux/Solaris
URL: ftp://ftp.openldap.org/incoming/slapi_type.patch
Submission from: (NULL) (217.42.114.74)
The following functions in slapi-plugin.h have the wrong types:
int slapi_entry_attr_get_long( const Slapi_Entry *e, const char *type );
int slapi_entry_attr_get_uint( const Slapi_Entry *e, const char *type );
int slapi_entry_attr_get_ulong( const Slapi_Entry *e, const char *type );
They should be:
long slapi_entry_attr_get_long( const Slapi_Entry *e, const char *type );
unsigned int slapi_entry_attr_get_uint( const Slapi_Entry *e, const char *type
);
unsigned long slapi_entry_attr_get_ulong( const Slapi_Entry *e, const char *type
);
Similar fixes need to be made in proto-slapi.h and slapi_utils.c.
BTW: I've attempted to upload a patch to the ftp area but I'm not sure that it
worked:
ftp> put slapi_type.patch
local: slapi_type.patch remote: slapi_type.patch
227 Entering Passive Mode (204,152,186,57,233,231)
150 Opening BINARY mode data connection for 'slapi_type.patch'.
226 Transfer complete (unique file name:slapi_type.patch).
2762 bytes sent in 0.00257 secs (1.1e+03 Kbytes/sec)
ftp>
ftp> ls
227 Entering Passive Mode (204,152,186,57,196,221)
150 Opening ASCII mode data connection for '/bin/ls'.
ftpd: .: Permission denied
226 Transfer complete.
Cheers,
Martin.