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
5a4babde
Commit
5a4babde
authored
26 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Add DEFAULT_EDITOR to ldapconfig.h. Used by ldbmtest and ud.
parent
1676d611
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/ldapconfig.h.edit
+3
-1
3 additions, 1 deletion
include/ldapconfig.h.edit
servers/slapd/tools/ldbmtest.c
+1
-3
1 addition, 3 deletions
servers/slapd/tools/ldbmtest.c
with
4 additions
and
4 deletions
include/ldapconfig.h.edit
+
3
−
1
View file @
5a4babde
...
...
@@ -39,6 +39,8 @@
#define DEFAULT_LIBEXECDIR "%LIBEXECDIR%"
#define DEFAULT_RUNDIR "%RUNDIR%"
#define DEFAULT_EDITOR "%EDITOR%"
#define DEFAULT_LDAP_CONF_FILE "%SYSCONFDIR%/ldap.conf"
#define DEFAULT_LDAP_USERRC_FILE "ldaprc"
#define DEFAULT_LDAP_ENV_PREFIX "LDAP"
...
...
@@ -178,7 +180,7 @@ Please try again later.\r\n"
/* ud configuration file */
#define UD_CONFIG_FILE "%SYSCONFDIR%/ud.conf"
/* default editor */
#define UD_DEFAULT_EDITOR
"%
EDITOR
%"
#define UD_DEFAULT_EDITOR
DEFAULT_
EDITOR
/* default bbasename of user config file */
#define UD_USER_CONFIG_FILE ".udrc"
/* default base where groups are created */
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/tools/ldbmtest.c
+
1
−
3
View file @
5a4babde
...
...
@@ -31,8 +31,6 @@
#include
"../slap.h"
#include
"../back-ldbm/back-ldbm.h"
#define EDITOR "/usr/ucb/vi"
static
struct
dbcache
*
openchoice
(
char
c
,
int
mode
,
int
verbose
,
char
**
fname
);
static
void
print_entry
(
FILE
*
fp
,
char
c
,
Datum
*
key
,
char
*
klabel
,
Datum
*
data
,
char
*
dlabel
);
static
void
free_and_close
(
struct
dbcache
*
dbc
,
Datum
key
,
Datum
data
);
...
...
@@ -537,7 +535,7 @@ edit_entry( char c, Datum *data )
char
*
editor
;
if
(
(
editor
=
getenv
(
"EDITOR"
))
==
NULL
)
{
editor
=
EDITOR
;
editor
=
DEFAULT_
EDITOR
;
}
execl
(
editor
,
editor
,
tmpname
,
NULL
);
perror
(
"execl"
);
...
...
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