mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-01 14:15:49 +08:00
filecheck(), we should strcpy the file passed (f arg) and not always slapd_replogfile, else this function is of little real use
This commit is contained in:
parent
4319e67736
commit
a44adcfb43
@ -174,7 +174,7 @@ filecheck(
|
||||
char *p;
|
||||
unsigned int ret = 0;
|
||||
|
||||
strcpy( dir, sglob->slapd_replogfile );
|
||||
strcpy( dir, f );
|
||||
p = strrchr( dir, '/' );
|
||||
if ( p != NULL ) {
|
||||
*p = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user