From 35d9d9e97323ad7c876b8a82d490a45c444c76e6 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Wed, 14 Jul 2010 17:12:54 +0800 Subject: [PATCH] [frotz] remove check root --- .../patches/002-make-it-can-run-as-root.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 frotz/patches/002-make-it-can-run-as-root.patch 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 + +Signed-off-by: Xiangfu Liu +--- + 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) {