Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
5695d590
Commit
5695d590
authored
25 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Ignore lines that begin with "#".
parent
2967e3c9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/libldif/line64.c
+20
-17
20 additions, 17 deletions
libraries/libldif/line64.c
with
20 additions
and
17 deletions
libraries/libldif/line64.c
+
20
−
17
View file @
5695d590
...
...
@@ -21,7 +21,7 @@ int ldif_debug = 0;
#define RIGHT4 0x0f
#define CONTINUED_LINE_MARKER '\001'
static
const
char
nib2b64
[
0x40
f
]
=
static
const
char
nib2b64
[
0x40
]
=
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
;
static
const
unsigned
char
b642nib
[
0x80
]
=
{
...
...
@@ -176,26 +176,29 @@ ldif_parse_line(
char
*
ldif_getline
(
char
**
next
)
{
char
*
l
;
char
*
line
;
if
(
*
next
==
NULL
||
**
next
==
'\n'
||
**
next
==
'\0'
)
{
return
(
NULL
);
}
do
{
if
(
*
next
==
NULL
||
**
next
==
'\n'
||
**
next
==
'\0'
)
{
return
(
NULL
);
}
line
=
*
next
;
l
=
*
next
;
while
(
(
*
next
=
strchr
(
*
next
,
'\n'
))
!=
NULL
)
{
unsigned
char
c
=
*
(
*
next
+
1
);
if
(
isspace
(
c
)
&&
c
!=
'\n'
)
{
**
next
=
CONTINUED_LINE_MARKER
;
*
(
*
next
+
1
)
=
CONTINUED_LINE_MARKER
;
}
else
{
*
(
*
next
)
++
=
'\0'
;
break
;
while
(
(
*
next
=
strchr
(
*
next
,
'\n'
))
!=
NULL
)
{
unsigned
char
c
=
*
(
*
next
+
1
);
if
(
isspace
(
c
)
&&
c
!=
'\n'
)
{
**
next
=
CONTINUED_LINE_MARKER
;
*
(
*
next
+
1
)
=
CONTINUED_LINE_MARKER
;
}
else
{
*
(
*
next
)
++
=
'\0'
;
break
;
}
(
*
next
)
++
;
}
(
*
next
)
++
;
}
}
while
(
*
line
==
'#'
);
return
(
l
);
return
(
l
ine
);
}
void
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment