]> skyeroc.xyz Git - dgamelaunch/commitdiff
various fixes
authorJoshua Kwan <joshk@triplehelix.org>
Thu, 17 Jun 2004 16:42:56 +0000 (16:42 +0000)
committerJoshua Kwan <joshk@triplehelix.org>
Thu, 17 Jun 2004 16:42:56 +0000 (16:42 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@300 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

Changelog
Makefile
dgl-common.c
dgl-create-chroot

index 2b45c6fe31b3a5bedcb32c601a79d1f523aee9c7..cd79c39d49e3fd07c217526a4bdcdd515b80d479 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,7 @@
+1.4.6 (????/??/??)
+       * Fix some signed/unsigned warnings.
+       * Fix make install check for PREFIX -> $(PREFIX).
+
 1.4.5 (2004/06/14)
        * Reset offset if necessary to show at least one game to avoid things
          like "(15-14 of 14)".
index 07fdc25d3ccaa70b01179b20718253a1afae044e..c9add462eeea0dad4c267f5e5412e13076e87f0b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ NAME = dgamelaunch
 exclusions = CVS .svn .cvsignore tags
 PREFIX = /usr
 SBINDIR = $(PREFIX)/sbin
-ifeq (PREFIX,/usr)
+ifeq ($(PREFIX),/usr)
   MANDIR = $(PREFIX)/share/man
 else
   MANDIR = $(PREFIX)/man
index 727ec1b76f20515dc7a68e0e9d8c7fbf8c0b83fc..464566302bec327a5583dbee0d67cc468b1d0a45 100644 (file)
@@ -236,7 +236,7 @@ create_config ()
     return;
   }
   /* Fill the rest with defaults */
-  if (!myconfig->shed_user && myconfig->shed_uid == -1)
+  if (!myconfig->shed_user && myconfig->shed_uid == (uid_t)-1)
   {
     struct passwd *pw;
     if ((pw = getpwnam(defconfig.shed_user)))
@@ -245,7 +245,7 @@ create_config ()
       myconfig->shed_uid = defconfig.shed_uid;
   }
 
-  if (!myconfig->shed_group && myconfig->shed_gid == -1)
+  if (!myconfig->shed_group && myconfig->shed_gid == (gid_t)-1)
   {
     struct group *gr;
     if ((gr = getgrnam(defconfig.shed_group)))
index 1efeea0b13c6fd12df6d42c74c0eed5a0b3b0575..83dea0713cb93dcb6b640390834264808d30f85a 100755 (executable)
@@ -96,7 +96,7 @@ fi
 
 # ...and all the data it needs
 if [ -n "$playground_var" ]; then
-       mkdir -p $chroot_path$playground_var/save
+       mkdir -p $chroot_path$playground_var/save $chroot_path$playground_var/dumps
        touch $chroot_path$playground_var/record
        touch $chroot_path$playground_var/perm
        touch $chroot_path$playground_var/logfile