mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
Try to discourage editing back-ldif files
This commit is contained in:
parent
68c7d375da
commit
a4a7ffdf5c
1 changed files with 3 additions and 1 deletions
|
|
@ -395,8 +395,10 @@ ldif_read_file( const char *path, char **datap )
|
|||
static int
|
||||
spew_file( int fd, const char *spew, int len, int *save_errno )
|
||||
{
|
||||
int writeres = 0;
|
||||
int writeres;
|
||||
#define HEADER "# AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify.\n"
|
||||
|
||||
writeres = write(fd, HEADER, sizeof(HEADER));
|
||||
while(len > 0) {
|
||||
writeres = write(fd, spew, len);
|
||||
if(writeres == -1) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue