Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
dhcp
0021-dhcp-4.2.4-P2-bnc878846-conf-to-ldap.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0021-dhcp-4.2.4-P2-bnc878846-conf-to-ldap.patch of Package dhcp
Index: dhcp-4.2.4-P2/contrib/ldap/dhcpd-conf-to-ldap =================================================================== --- dhcp-4.2.4-P2/contrib/ldap/dhcpd-conf-to-ldap +++ dhcp-4.2.4-P2/contrib/ldap/dhcpd-conf-to-ldap @@ -486,14 +486,23 @@ sub parse_subclass $subclass = next_token (0); parse_error () if !defined ($subclass); - $tmp = next_token (0); - parse_error () if !defined ($tmp); - parse_error () if !($tmp eq '{'); - + if (substr($subclass,-1) eq ';') { + $tmp = ";"; + $subclass = substr($subclass,0,-1); + } else { + $tmp = next_token (0); + parse_error () if !defined ($tmp); + } + parse_error () if !($tmp eq '{' or $tmp eq ';'); add_dn_to_stack ("cn=$subclass"); $curentry{'type'} = 'subclass'; $curentry{'class'} = $class; $curentry{'subclass'} = $subclass; + + if ($tmp eq ';') { + print_entry () if %curentry; + remove_dn_from_stack (); + } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor