r16516: Get rid of file_exists() as there already is a file_exist().
authorJelmer Vernooij <jelmer@samba.org>
Mon, 26 Jun 2006 11:23:06 +0000 (11:23 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:09:31 +0000 (14:09 -0500)
source/auth/gensec/schannel_state.c
source/lib/util/util_file.c
source/passdb/secrets.c

index b9cee49f5afab4c249b9dcda228a15a1b024b106..97bcd40d091231ad1e0d0b502bf8ec0093263ce8 100644 (file)
@@ -45,7 +45,7 @@ struct ldb_context *schannel_db_connect(TALLOC_CTX *mem_ctx)
                return NULL;
        }
 
                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);
        
        ldb = ldb_wrap_connect(mem_ctx, path, system_session(mem_ctx), 
                               NULL, LDB_FLG_NOSYNC, NULL);
index 8d8e7c6ec9c3b2a2566fd9812b9b7fcf1518c8aa..99432ad8bbd4a4a7bba76d27fcd512d663c49078 100644 (file)
@@ -356,15 +356,6 @@ _PUBLIC_ BOOL file_save(const char *fname, const void *packet, size_t length)
        return True;
 }
 
        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;
 _PUBLIC_ int vfdprintf(int fd, const char *format, va_list ap) _PRINTF_ATTRIBUTE(2,0)
 {
        char *p;
index cbf94c0c3e8eabd18ec42e80a1336823b3a9758b..8f4b5f4f5eeb71e1a004b427abc1f365d7ec25bb 100644 (file)
@@ -107,7 +107,7 @@ struct ldb_context *secrets_db_connect(TALLOC_CTX *mem_ctx)
                return NULL;
        }
        
                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 */
 
        /* Secrets.ldb *must* always be local.  If we call for a
         * system_session() we will recurse */