Author: jelmer
Date: 2006-06-26 11:23:06 +0000 (Mon, 26 Jun 2006)
New Revision: 16516

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16516

Log:
Get rid of file_exists() as there already is a file_exist().

Modified:
   branches/SAMBA_4_0/source/auth/gensec/schannel_state.c
   branches/SAMBA_4_0/source/lib/util/util_file.c
   branches/SAMBA_4_0/source/passdb/secrets.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/gensec/schannel_state.c
===================================================================
--- branches/SAMBA_4_0/source/auth/gensec/schannel_state.c      2006-06-25 
23:46:50 UTC (rev 16515)
+++ branches/SAMBA_4_0/source/auth/gensec/schannel_state.c      2006-06-26 
11:23:06 UTC (rev 16516)
@@ -45,7 +45,7 @@
                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);

Modified: branches/SAMBA_4_0/source/lib/util/util_file.c
===================================================================
--- branches/SAMBA_4_0/source/lib/util/util_file.c      2006-06-25 23:46:50 UTC 
(rev 16515)
+++ branches/SAMBA_4_0/source/lib/util/util_file.c      2006-06-26 11:23:06 UTC 
(rev 16516)
@@ -356,15 +356,6 @@
        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;

Modified: branches/SAMBA_4_0/source/passdb/secrets.c
===================================================================
--- branches/SAMBA_4_0/source/passdb/secrets.c  2006-06-25 23:46:50 UTC (rev 
16515)
+++ branches/SAMBA_4_0/source/passdb/secrets.c  2006-06-26 11:23:06 UTC (rev 
16516)
@@ -107,7 +107,7 @@
                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 */

Reply via email to