mirror of
https://github.com/bklang/ldap2dns.git
synced 2025-10-27 14:24:15 -04:00
Add getopt option to parse max record count (Thanks Jason Chambers)
git-svn-id: https://svn.alkaloid.net/gpl/ldap2dns/trunk@373 06cd67b6-e706-0410-b29e-9de616bca6e9
This commit is contained in:
@@ -323,7 +323,7 @@ static int parse_options()
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
|
||||
c = getopt_long(main_argc, main_argv, "b:D:e:h:H:o:p:u:m:t:Vv::w:L::", long_options, &option_index);
|
||||
c = getopt_long(main_argc, main_argv, "b:D:e:h:H:o:p:u:M:m:t:Vv::w:L::", long_options, &option_index);
|
||||
|
||||
if (c == -1)
|
||||
break;
|
||||
@@ -984,7 +984,6 @@ static void read_loccodes(void)
|
||||
LDAPMessage* m;
|
||||
int ldaperr;
|
||||
|
||||
|
||||
if ( (ldaperr = ldap_search_ext_s(ldap_con, options.searchbase[0] ? options.searchbase : NULL, LDAP_SCOPE_SUBTREE, "objectclass=DNSloccodes", NULL, 0, NULL, NULL, &options.searchtimeout, options.reclimit, &res))!=LDAP_SUCCESS )
|
||||
die_ldap(ldaperr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user