[PATCH] icacls: New stub program.

Charles Davis cdavis5x at gmail.com
Mon Feb 8 03:31:15 CST 2016


This program supersedes (to some extent) cacls in Windows 2003 and
later. Installers are now beginning to appear that depend on it being
present.

Signed-off-by: Charles Davis <cdavis5x at gmail.com>
---
 programs/icacls/Makefile.in   |  5 +++++
 programs/icacls/icacls_main.c | 39 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+)
 create mode 100644 programs/icacls/Makefile.in
 create mode 100644 programs/icacls/icacls_main.c

diff --git a/programs/icacls/Makefile.in b/programs/icacls/Makefile.in
new file mode 100644
index 0000000..af919a5
--- /dev/null
+++ b/programs/icacls/Makefile.in
@@ -0,0 +1,5 @@
+MODULE    = icacls.exe
+APPMODE   = -mconsole
+
+C_SRCS = \
+	icacls_main.c
diff --git a/programs/icacls/icacls_main.c b/programs/icacls/icacls_main.c
new file mode 100644
index 0000000..8f93a97
--- /dev/null
+++ b/programs/icacls/icacls_main.c
@@ -0,0 +1,39 @@
+/*
+ * Integrity/ACL viewer/editor stub
+ * Copyright (C) 2009 Andrey Turkin
+ * Copyright (C) 2016 Charles Davis
+ *
+ * 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 <stdlib.h>
+#include <stdio.h>
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(icacls);
+
+int main(int argc, char** argv)
+{
+    int i;
+
+    WINE_FIXME("This is dummy icacls, not performing ACL manipulations\n");
+    WINE_FIXME("stub:");
+    for (i = 0; i < argc; i++)
+        WINE_FIXME(" %s", wine_dbgstr_a(argv[i]));
+    WINE_FIXME("\n");
+
+    return 0;
+}
-- 
2.7.0




More information about the wine-patches mailing list