Complete.Org: Mailing Lists: Archives: freeciv-dev: July 1999:
[Freeciv-Dev] Another OS/2 issue
Home

[Freeciv-Dev] Another OS/2 issue

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "freeciv-dev@xxxxxxxxxxx" <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Another OS/2 issue
From: "Alexander Mai" <st002279@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Jul 1999 01:46:46 +0200 (CED)
Reply-to: "Alexander Mai" <st002279@xxxxxxxxxxxxxxxxxxxxxx>

First an addition to the sys/select.h stuff:

given the configure patch one may adjust the lines in
sernet.c, civserver.c and mapview.c, too.
It seems to affect AIX, too. Another fine IBM product ;-)


Another fix is that the check in civserver assumes we're running
a real multi-user operating system and not a single-user one.
Here the only user is the super-user, at least if the 
related calls exist. Here it does and unless one find a more
sophisticated catch I need

--- civserver.c.orig    Tue Jul 27 01:36:36 1999
+++ civserver.c Tue Jul 27 01:37:46 1999
@@ -142,12 +142,14 @@
   int save_counter=0;
   int loglevel=LOG_NORMAL;
 
+#ifndef __EMX__
   if (!getuid() || !geteuid()) {
     fprintf(stderr, "%s: Fatal error: you're trying to run me as superuser!\n",
            (argv[0] ? argv[0] : "freeciv_server"));
     fprintf(stderr,"Use a non-privileged account instead.\n");
     exit(1);
   }
+#endif
 
   strcpy(metaserver_info_line, DEFAULT_META_SERVER_INFO_STRING);
 


------------------------------------------------------------------
  Alexander Mai
  st002279@xxxxxxxxxxxxxxxxxxxxxx
------------------------------------------------------------------



[Prev in Thread] Current Thread [Next in Thread]