From 5b2bc01bcf6974ec3a69f2774de7448f48422ff5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 2 Oct 1998 12:34:56 +0000 Subject: use sys_stat() not file_exist() for codepages. (we don't want dos translation!) (This used to be commit 1dcefb3f8e1e8b407d7f45332262e1b04bc1d6ee) --- source3/lib/charset.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib') 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; } -- cgit