From 0102c6e2bc289352ab726d68956c126727cf8d81 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 29 Jul 2011 16:14:39 +0200 Subject: s3: Make is_executable() available in lib/ --- source3/smbd/open.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'source3/smbd/open.c') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 82125832cb..2529cbe0ce 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -698,23 +698,6 @@ static NTSTATUS open_file(files_struct *fsp, return NT_STATUS_OK; } -/******************************************************************* - Return True if the filename is one of the special executable types. -********************************************************************/ - -bool is_executable(const char *fname) -{ - if ((fname = strrchr_m(fname,'.'))) { - if (strequal(fname,".com") || - strequal(fname,".dll") || - strequal(fname,".exe") || - strequal(fname,".sym")) { - return True; - } - } - return False; -} - /**************************************************************************** Check if we can open a file with a share mode. Returns True if conflict, False if not. -- cgit