From d23d31364101dfc9d8e60645fb63332b2e20d737 Mon Sep 17 00:00:00 2001 From: Nigel Liang Date: Fri, 2 Mar 2007 14:27:51 -0800 Subject: Dummy implementation of cacls.exe Implements a dummy cacls.exe that does nothing but return to fool some installers that call it. This patch fixes bug 7593. --- programs/Makefile.in | 2 ++ programs/cacls/Makefile.in | 13 +++++++++++++ programs/cacls/cacls | 1 + programs/cacls/cacls.c | 23 +++++++++++++++++++++++ tools/wine.inf | 1 + 5 files changed, 40 insertions(+), 0 deletions(-) diff --git a/programs/Makefile.in b/programs/Makefile.in index 8b61cde..8a1311f 100644 --- a/programs/Makefile.in +++ b/programs/Makefile.in @@ -6,6 +6,7 @@ SRCDIR = @srcdir@ VPATH = @srcdir@ SUBDIRS = \ + cacls \ clock \ cmd \ cmdlgtst \ @@ -45,6 +46,7 @@ SUBDIRS = \ # Sub-directories to run make install into INSTALLSUBDIRS = \ + cacls \ clock \ cmd \ control \ diff --git a/programs/cacls/Makefile.in b/programs/cacls/Makefile.in new file mode 100644 index 0000000..624cdd3 --- /dev/null +++ b/programs/cacls/Makefile.in @@ -0,0 +1,13 @@ +TOPSRCDIR = @top_srcdir@ +TOPOBJDIR = ../.. +SRCDIR = @srcdir@ +VPATH = @srcdir@ +MODULE = cacls.exe +APPMODE = -mconsole +IMPORTS = shell32 user32 kernel32 + +C_SRCS = cacls.c + +@MAKE_PROG_RULES@ + +@DEPENDENCIES@ # everything below this line is overwritten by make depend diff --git a/programs/cacls/cacls b/programs/cacls/cacls new file mode 120000 index 0000000..82c8632 --- /dev/null +++ b/programs/cacls/cacls @@ -0,0 +1 @@ +../../tools/winewrapper \ No newline at end of file diff --git a/programs/cacls/cacls.c b/programs/cacls/cacls.c new file mode 100644 index 0000000..237ab06 --- /dev/null +++ b/programs/cacls/cacls.c @@ -0,0 +1,23 @@ +/* + * Dummy Cacls + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + * + */ + + +int main (int argc, char *argv[]) { + return 0; +} diff --git a/tools/wine.inf b/tools/wine.inf index 7127629..98becfc 100644 --- a/tools/wine.inf +++ b/tools/wine.inf @@ -2156,6 +2156,7 @@ HKLM,%CurrentVersion%\Telephony\Country 10,command,start.exe 11,,advapi32.dll 11,,advpack.dll +11,,cacls.exe 11,,cmd.exe 11,,comctl32.dll 11,,comdlg32.dll -- 1.4.1