summaryrefslogtreecommitdiff
path: root/frotz/patches/002-make-it-can-run-as-root.patch
diff options
context:
space:
mode:
authorDavid Kühling <dvdkhlng@gmx.de>2010-09-18 20:47:21 +0200
committerDavid Kühling <dvdkhlng@gmx.de>2010-09-18 20:47:21 +0200
commit4bfce3b6e2ea095ea3d9f5d2d1018cc0a1e5ce09 (patch)
tree58590463ada82a27eca0889312c32450358249a8 /frotz/patches/002-make-it-can-run-as-root.patch
downloadqipackages-fork-4bfce3b6e2ea095ea3d9f5d2d1018cc0a1e5ce09.tar.gz
Major overhaul and cleanup. Support for .ubi image file installations.grafted
Only compile&install a minimum host Gforth for bootstrapping the target Gforth, removing strange emacs-dependencies that cropped up earlier. Image file can now be built on the nanonote using 'gforth-update-image' command. Also, Gforth is now run through a wrapper that calls 'gforth-update-image' automatically, if necessary. Also first attempts at supporting libcc C-interface libraries pre-compiled on the host. Tested to compile on amd64 and i386.
Diffstat (limited to 'frotz/patches/002-make-it-can-run-as-root.patch')
-rw-r--r--frotz/patches/002-make-it-can-run-as-root.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/frotz/patches/002-make-it-can-run-as-root.patch b/frotz/patches/002-make-it-can-run-as-root.patch
new file mode 100644
index 0000000..703c32d
--- /dev/null
+++ b/frotz/patches/002-make-it-can-run-as-root.patch
@@ -0,0 +1,24 @@
+remove "root" check.
+
+From: Xiangfu Liu <xiangfu@sharism.cc>
+
+Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
+---
+ src/curses/ux_init.c | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/curses/ux_init.c b/src/curses/ux_init.c
+index e9baff1..c8bbbd2 100644
+--- a/src/curses/ux_init.c
++++ b/src/curses/ux_init.c
+@@ -140,8 +140,8 @@ void os_process_arguments (int argc, char *argv[])
+ char configfile[FILENAME_MAX + 1];
+
+ if ((getuid() == 0) || (geteuid() == 0)) {
+- printf("I won't run as root!\n");
+- exit(1);
++ printf("be carefull, I am run as root!\n");
++ //exit(1);
+ }
+
+ if ((home = getenv("HOME")) == NULL) {