[programs/cacls] Dummy implementation of cacls.exe

Nigel "Nia-Chiang" Liang ncliang at gmail.com
Fri Mar 2 13:33:09 CST 2007


Skipped content of type multipart/alternative-------------- next part --------------
From bf42393b7707f152f0d9a29fbea1a3ee9e6d427b Mon Sep 17 00:00:00 2001
From: Nigel Liang <ncliang at google.com>
Date: Fri, 2 Mar 2007 11:20:35 -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       |    1 +
 programs/cacls/Makefile.in |   17 +++++++++++++++++
 programs/cacls/cacls       |    1 +
 programs/cacls/cacls.c     |   23 +++++++++++++++++++++++
 tools/wine.inf             |    1 +
 5 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/programs/Makefile.in b/programs/Makefile.in
index 8b61cde..3cf8425 100644
--- a/programs/Makefile.in
+++ b/programs/Makefile.in
@@ -6,6 +6,7 @@ SRCDIR    = @srcdir@
 VPATH     = @srcdir@
 
 SUBDIRS = \
+	cacls \
 	clock \
 	cmd \
 	cmdlgtst \
diff --git a/programs/cacls/Makefile.in b/programs/cacls/Makefile.in
new file mode 100644
index 0000000..1dfcd7a
--- /dev/null
+++ b/programs/cacls/Makefile.in
@@ -0,0 +1,17 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = cacls.exe
+APPMODE   = -mconsole
+IMPORTS   = shell32 user32 kernel32
+
+C_SRCS = cacls.c
+
+#RC_SRCS = wcmdrc.rc
+#RC_BINSRC = wcmdrc.rc
+#RC_BINARIES = wcmd.ico
+
+ at MAKE_PROG_RULES@
+
+ at 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


More information about the wine-patches mailing list