Thread getlogin liefert kein Ergebnis unter kde 3.2.1
(2 answers)
Opened by Gast at 2004-06-28 02:42
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] |