diff --git a/Makefile b/Makefile index f4d44c2..4910e97 100644 --- a/Makefile +++ b/Makefile @@ -17,9 +17,9 @@ else endif ifeq (1,$(VIRUS)) - EDITOR = virus.c + EDITOR = editors/virus.c else - EDITOR = ee.c + EDITOR = editors/ee.c endif CC = gcc diff --git a/README b/README index 265f54a..1e43eec 100644 --- a/README +++ b/README @@ -49,7 +49,7 @@ variable in include/unixconf.h and/or the HACKDIR variable in include/config.h. need to put gzip in there though if you compile nethack to use it for compression.) -3) Edit dgamelaunch.conf. This will contain information for dgamelaunch +3) Edit etc/dgamelaunch.conf. This will contain information for dgamelaunch about what uid/username, gid/group to shed privileges to at runtime. It must also contain the path to nethack, and needs to know certain aspects of your chroot. diff --git a/dgl-create-chroot b/dgl-create-chroot index 1efeea0..021043d 100755 --- a/dgl-create-chroot +++ b/dgl-create-chroot @@ -26,6 +26,7 @@ playground_var="/var/games/nethack" termdata="/usr/share/terminfo" [ -f dgl-create-chroot.conf ] && . ./dgl-create-chroot.conf +[ -f etc/dgl-create-chroot.conf ] && . etc/dgl-create-chroot.conf findlibs() { @@ -71,8 +72,8 @@ touch $chroot_path/dgl-login touch $chroot_path/dgl-lock # Might want to remove these two for packaging? -cp dgl-default-rcfile $chroot_path -cp dgl-banner $chroot_path +cp etc/dgl-default-rcfile $chroot_path +cp etc/dgl-banner $chroot_path chown $shed_uid:$shed_gid $chroot_path/dgl-* diff --git a/virus.c b/virus.c index f6fd55f..b18e310 100644 --- a/virus.c +++ b/virus.c @@ -81,7 +81,7 @@ char *vi_Version = "0.0.2+dgamelaunch " VERSION; #include #include -#include "last_char_is.c" +#include "editors/last_char_is.c" #ifndef TRUE #define TRUE ((int)1)