[programs/cacls] Dummy implementation of cacls.exe (try 3)
Nigel "Nia-Chiang" Liang
ncliang at gmail.com
Fri Mar 2 19:57:19 CST 2007
Skipped content of type multipart/alternative-------------- next part --------------
From cd365ddb5606252d0258b1d80e664441e8166091 Mon Sep 17 00:00:00 2001
From: Nigel Liang <ncliang at google.com>
Date: Fri, 2 Mar 2007 17:39:44 -0800
Subject: Dummy implementation of cacls.exe
Implements a dummy cacls.exe that does nothing but return. This patch fixes bug 7593.
---
Makefile.in | 2 ++
configure | 3 +++
configure.ac | 1 +
programs/Makefile.in | 2 ++
programs/cacls/Makefile.in | 13 +++++++++++++
programs/cacls/cacls | 1 +
programs/cacls/cacls.c | 25 +++++++++++++++++++++++++
tools/wine.inf | 1 +
8 files changed, 48 insertions(+), 0 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index d4e743a..538aae5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -430,6 +430,7 @@ ALL_MAKEFILES = \
libs/wpp/Makefile \
loader/Makefile \
programs/Makefile \
+ programs/cacls/Makefile \
programs/clock/Makefile \
programs/cmd/Makefile \
programs/cmdlgtst/Makefile \
@@ -765,6 +766,7 @@ libs/wine/Makefile: libs/wine/Makefile.i
libs/wpp/Makefile: libs/wpp/Makefile.in Make.rules
loader/Makefile: loader/Makefile.in Make.rules
programs/Makefile: programs/Makefile.in Make.rules
+programs/cacls/Makefile: programs/cacls/Makefile.in programs/Makeprog.rules
programs/clock/Makefile: programs/clock/Makefile.in programs/Makeprog.rules
programs/cmd/Makefile: programs/cmd/Makefile.in programs/Makeprog.rules
programs/cmdlgtst/Makefile: programs/cmdlgtst/Makefile.in programs/Makeprog.rules
diff --git a/configure b/configure
index 549688a..8a11b4c 100755
--- a/configure
+++ b/configure
@@ -20991,6 +20991,8 @@ ac_config_files="$ac_config_files loader
ac_config_files="$ac_config_files programs/Makefile"
+ac_config_files="$ac_config_files programs/cacls/Makefile"
+
ac_config_files="$ac_config_files programs/clock/Makefile"
ac_config_files="$ac_config_files programs/cmd/Makefile"
@@ -21927,6 +21929,7 @@ do
"libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
"loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
"programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
+ "programs/cacls/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cacls/Makefile" ;;
"programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
"programs/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmd/Makefile" ;;
"programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
diff --git a/configure.ac b/configure.ac
index 59257fd..4e2d4b4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1800,6 +1800,7 @@ AC_CONFIG_FILES([libs/wine/Makefile])
AC_CONFIG_FILES([libs/wpp/Makefile])
AC_CONFIG_FILES([loader/Makefile])
AC_CONFIG_FILES([programs/Makefile])
+AC_CONFIG_FILES([programs/cacls/Makefile])
AC_CONFIG_FILES([programs/clock/Makefile])
AC_CONFIG_FILES([programs/cmd/Makefile])
AC_CONFIG_FILES([programs/cmdlgtst/Makefile])
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
+
+ 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..4550617
--- /dev/null
+++ b/programs/cacls/cacls.c
@@ -0,0 +1,25 @@
+/*
+ * 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
+ *
+ */
+#include <stdio.h>
+
+int main (int argc, char *argv[]) {
+ printf("This program is just a dummy cacls.exe that returns success every time called.\n");
+ printf("The \"real\" cacls.exe can be found under \\windows\\system32 of a windows machine.\n");
+ 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