Re: ldpad(8): fix deletion of individual attribute values

2017-02-09 Thread Matthew Weigel
if (vals->be_sub && - vals->be_sub->be_type == BER_TYPE_SET) +vals->be_sub->be_type == BER_TYPE_OCTETSTRING) { ldap_del_values(a, vals); - else +} + else { ldap_del_attribute(entry, attr); + } break; case LDAP_MOD_REPLACE: if (vals->be_sub != NULL && Best Regards Robert -- Matthew Weigel hacker unique & idempot . ent

ldapd: server response code should be long long

2014-12-12 Thread Matthew Weigel
The function send_ldap_extended_response() takes as its second-to-last argument a long long result_code, but the infrastructure for handling LDAP extended operations in ldap_extended() restricts them to an int. I don't think there's any risk or bug here, this is just type correctness. Index: lda

ldapd(8) mention in upgrade55.html

2014-08-01 Thread Matthew Weigel
mat will not be compatible. To preserve data +you must dump the contents of any databases (for example, to LDIF) and +reload them afterward. + + All packages and user-created binaries must be removed from the system prior to the upgrade, and reloaded afterwards. -- Matthew Weigel ha

binary compatibility warning for ldapd(8)

2014-08-01 Thread Matthew Weigel
7:37 - @@ -157,3 +157,6 @@ program first appeared in .Sh CAVEATS .Nm is not yet fully LDAPv3 compliant. +.Pp +Database files are not expected to work across architectures and may +not work across versions. -- Matthew Weigel hacker unique & idempot . ent

Re: Switch OpenBSD manuals to DocBook

2014-04-01 Thread Matthew Weigel
er information. -- Matthew Weigel hacker unique & idempot . ent

Re: potential NULL pointer dereference in ifconfig.c

2014-03-05 Thread Matthew Weigel
if (afp->af_getprefix) (*afp->af_getprefix)(addr, MASK); explicit_prefix = 1; } I don't think that change does anything. -- Matthew Weigel hacker unique & idempot . ent

little diff to make dump -W play nicer with cron

2011-12-29 Thread Matthew Weigel
gt;fs_freq * SECSPERDAY)); + dtwalk->dd_ddate <= tnow - (dt->fs_freq * SECSPERDAY)); if (arg != 'w' || dumpme) (void) printf( "%c %8s\t(%6s) Last dump: Level %c, Date %s\n", -- Matthew Weigel hacker unique & idempot . ent