Commit ffffcee0 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

Try to discourage editing back-ldif files

parent 314d1467
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment