DGAMELAUNCH VERSIONS
====================
-Development version can be fetched from the source repository with subversion:
+Development version can be fetched from the source repository with git:
- svn co svn://triplehelix.org/dgamelaunch/trunk
+ git clone git://github.com/paxed/dgamelaunch.git
Releases are downloadable at http://alt.org/nethack/dgamelaunch/
-a Ignored.
-e Ignored.
- -f file Read configuration from file.
-h Ignored.
-i user Autologin and run the register -command hook for "user"
(with password "user").
while FreeBSD does not. FreeBSD, on the other hand, does allow the LOGNAME
environment variable. Dgamelaunch will first check USER, then LOGNAME,
for "username:password", and tries autologin if either exists.
+ Dgamelaunch-specific DGLAUTH is checked before either of those.
ERROR CODES
argv = saved_argv;
#endif
- p = getenv("USER");
+ p = getenv("DGLAUTH");
/* Linux telnetd allows importing the USER envvar via telnet,
* while FreeBSD does not. FreeBSD, on the other hand, does allow
* the LOGNAME envvar. Check USER first, then LOGNAME.
*/
+ if (p == NULL) {
+ p = getenv("USER");
+ }
+
if (p == NULL) {
p = getenv("LOGNAME");
}
auth = strdup(p);
/* else auth is still NULL */
+ /* just to be sure */
+ unsetenv("DGLAUTH"); unsetenv("USER"); unsetenv("LOGNAME");
+
__progname = basename(strdup(argv[0]));
- while ((c = getopt(argc, argv, "sqh:pf:i:aeW:SD")) != -1)
+ while ((c = getopt(argc, argv, "sqh:pi:aeW:SD")) != -1)
{
switch (c)
{
case 'q':
silent = 1; break;
- case 'f':
- if (config)
- {
- if (!silent)
- fprintf(stderr, "warning: using %s\n", argv[optind]);
- free(config);
- }
-
- config = strdup(optarg);
- break;
-
case 'i':
if (optarg && *optarg != '\0') {
if (p && *p != '\0')