Commit c142f710 authored by Ben Collins's avatar Ben Collins
Browse files

filecheck(), we should strcpy the file passed (f arg) and not always...

filecheck(), we should strcpy the file passed (f arg) and not always slapd_replogfile, else this function is of little real use
parent 25e74062
...@@ -173,7 +173,7 @@ filecheck( ...@@ -173,7 +173,7 @@ filecheck(
char *p; char *p;
unsigned int ret = 0; unsigned int ret = 0;
strcpy( dir, sglob->slapd_replogfile ); strcpy( dir, f );
p = strrchr( dir, '/' ); p = strrchr( dir, '/' );
if ( p != NULL ) { if ( p != NULL ) {
*p = '\0'; *p = '\0';
......
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