~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/hw/xfree86/loader/os.c

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $XFree86: xc/programs/Xserver/hw/xfree86/loader/os.c,v 1.2 2002/05/31 18:46:00 dawes Exp $ */
 
2
 
 
3
#include "loaderProcs.h"
 
4
 
 
5
/*
 
6
 * OSNAME is a standard form of the OS name that may be used by the
 
7
 * loader and by OS-specific modules.
 
8
 */
 
9
 
 
10
#if defined(__linux__)
 
11
#define OSNAME "linux"
 
12
#elif defined(__FreeBSD__)
 
13
#define OSNAME "freebsd"
 
14
#elif defined(__NetBSD__)
 
15
#define OSNAME "netbsd"
 
16
#elif defined(__OpenBSD__)
 
17
#define OSNAME "openbsd"
 
18
#elif defined(Lynx)
 
19
#define OSNAME "lynxos"
 
20
#elif defined(__GNU__)
 
21
#define OSNAME "hurd"
 
22
#elif defined(SCO)
 
23
#define OSNAME "sco"
 
24
#elif defined(DGUX)
 
25
#define OSNAME "dgux"
 
26
#elif defined(ISC)
 
27
#define OSNAME "isc"
 
28
#elif defined(SVR4) && defined(sun)
 
29
#define OSNAME "solaris"
 
30
#elif defined(SVR4)
 
31
#define OSNAME "svr4"
 
32
#elif defined(__UNIXOS2__)
 
33
#define OSNAME "os2"
 
34
#else
 
35
#define OSNAME "unknown"
 
36
#endif
 
37
 
 
38
 
 
39
/* Return the OS name, and run-time OS version */
 
40
 
 
41
void
 
42
LoaderGetOS(const char **name, int *major, int *minor, int *teeny)
 
43
{
 
44
        if (name)
 
45
                *name = OSNAME;
 
46
                
 
47
        /* reporting runtime versions isn't supported yet */
 
48
}
 
49