]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/frotz/files/remove_root_restriction.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / frotz / files / remove_root_restriction.patch
1 --- ./src/curses/ux_init.c      2004-09-11 10:15:07.000000000 -0700
2 +++ ux_init.c.patch     2004-09-11 10:15:40.000000000 -0700
3 @@ -139,15 +139,6 @@
4      char *home;
5      char configfile[FILENAME_MAX + 1];
6  
7 -    if ((getuid() == 0) || (geteuid() == 0)) {
8 -        printf("I won't run as root!\n");
9 -        exit(1);
10 -    }
11 -
12 -    if ((home = getenv("HOME")) == NULL) {
13 -        printf("Hard drive on fire!\n");
14 -        exit(1);
15 -    }
16  
17  /* 
18   * It doesn't look like Frotz can reliably be resized given its current