glibc 2.3.6 and setlogin

Dan Osterrath Dan.Osterrath at gmx.de
Sun Nov 27 22:01:19 PST 2005


Just to bring up the question again as it is still left ananswered.
Is it intended that setlogin is not implemented / not working on a
recent linux glibc system?

Dan Osterrath schrieb:
> Hi,
> 
> ---------------------------------------
> #include <stdio.h>
> 
> int main(int argc, char **argv) {
>         if (argc < 2) {
>                 printf("no login given: %s <loginname>\n", argv[0]);
>                 exit(2);
>         }
>         if (setlogin(argv[1]) < 0) {
>                 printf("could not setlogin to %s\n", argv[1]);
>                 exit(1);
>         } else {
>                 printf("setlogin successful\n");
>                 exit(0);
>         }
> }
> ---------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20051128/8e159c77/attachment.sig>


More information about the lfs-support mailing list