mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r16516: Get rid of file_exists() as there already is a file_exist().
(This used to be commit c4b3c2b18c
)
This commit is contained in:
parent
509fd041aa
commit
4bd40183af
@ -45,7 +45,7 @@ struct ldb_context *schannel_db_connect(TALLOC_CTX *mem_ctx)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
existed = file_exists(path);
|
||||
existed = file_exist(path);
|
||||
|
||||
ldb = ldb_wrap_connect(mem_ctx, path, system_session(mem_ctx),
|
||||
NULL, LDB_FLG_NOSYNC, NULL);
|
||||
|
@ -356,15 +356,6 @@ _PUBLIC_ BOOL file_save(const char *fname, const void *packet, size_t length)
|
||||
return True;
|
||||
}
|
||||
|
||||
/**
|
||||
see if a file exists
|
||||
*/
|
||||
_PUBLIC_ BOOL file_exists(const char *path)
|
||||
{
|
||||
struct stat st;
|
||||
return (stat(path, &st) == 0);
|
||||
}
|
||||
|
||||
_PUBLIC_ int vfdprintf(int fd, const char *format, va_list ap) _PRINTF_ATTRIBUTE(2,0)
|
||||
{
|
||||
char *p;
|
||||
|
@ -107,7 +107,7 @@ struct ldb_context *secrets_db_connect(TALLOC_CTX *mem_ctx)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
existed = file_exists(path);
|
||||
existed = file_exist(path);
|
||||
|
||||
/* Secrets.ldb *must* always be local. If we call for a
|
||||
* system_session() we will recurse */
|
||||
|
Loading…
Reference in New Issue
Block a user