summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-02 12:34:56 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-02 12:34:56 +0000
commit5b2bc01bcf6974ec3a69f2774de7448f48422ff5 (patch)
tree2364c6b89b4ee582de8369f4bf405457d5c4c0be /source3/lib
parent7b463b5f04617de19b405ca131113271183aa811 (diff)
downloadsamba-5b2bc01bcf6974ec3a69f2774de7448f48422ff5.tar.gz
samba-5b2bc01bcf6974ec3a69f2774de7448f48422ff5.tar.bz2
samba-5b2bc01bcf6974ec3a69f2774de7448f48422ff5.zip
use sys_stat() not file_exist() for codepages. (we don't want dos
translation!) (This used to be commit 1dcefb3f8e1e8b407d7f45332262e1b04bc1d6ee)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/charset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/charset.c b/source3/lib/charset.c
index 08d7726e3b..5bf3bfbe30 100644
--- a/source3/lib/charset.c
+++ b/source3/lib/charset.c
@@ -209,7 +209,7 @@ static codepage_p load_client_codepage( int client_codepage )
"%03d",
client_codepage);
- if(!file_exist(codepage_file_name,&st))
+ if(sys_stat(codepage_file_name,&st)!=0)
{
DEBUG(0,("load_client_codepage: filename %s does not exist.\n",
codepage_file_name));
@@ -226,7 +226,7 @@ static codepage_p load_client_codepage( int client_codepage )
if( size < CODEPAGE_HEADER_SIZE || size > (CODEPAGE_HEADER_SIZE + 4 * MAXCODEPAGELINES))
{
DEBUG(0,("load_client_codepage: file %s is an incorrect size for a \
-code page file.\n", codepage_file_name));
+code page file (size=%d).\n", codepage_file_name, (int)size));
return NULL;
}