Thread getlogin liefert kein Ergebnis unter kde 3.2.1 (2 answers)
Opened by Gast at 2004-06-28 02:42

Dubu
 2004-06-29 14:46
#94787 #94787
User since
2003-08-04
2145 Artikel
ModeratorIn + EditorIn

user image
Das heisst einfach, dass die benutzte Shell keine Login-Shell ist.
Die Dokumentation zu getlogin() zeigt Abhilfe:

[quote= ,perldoc -f getlogin]
getlogin
   Implements the C library function of the same name, which on most systems returns the
   current login from /etc/utmp, if any.  If null, use "getpwuid".

                  $login = getlogin || getpwuid($<) || "Kilroy";

   Do not consider "getlogin" for authentication: it is not as secure as "getpwuid".
[/quote]

View full thread getlogin liefert kein Ergebnis unter kde 3.2.1