[Xquartz-dev] getlogin() returns wrong user
Jeremy Huddleston Sequoia
jeremyhu at apple.com
Thu Jun 1 20:14:21 PDT 2017
Seems quite odd to me. Please file a radar at http://bugreport.apple.com, and let me know the number, so I can CC myself. Make sure you include a sysdiagnose and reproduction steps.
> On Jun 1, 2017, at 05:01, Richard Tobin <richard at inf.ed.ac.uk> wrote:
>
> On several occasions - but this is the first when I've had time to
> look into it - the first few xterms opened in a new session
> have been returning the wrong username from getlogin():
>
> getuid() -> 26013 (correct)
> getpwuid(getuid()) -> richard (correct)
> getlogin() -> _spotlight (wrong)
>
> The terminal ownership is right:
>
> macaroni$ tty
> /dev/ttys001
>
> macaroni$ ls -l /dev/ttys001
> crw--w---- 1 richard tty 16, 1 Jun 1 12:58 /dev/ttys001
>
> The xterms are run with "xterm -ls".
>
> Any suggestions as to what to look for?
>
> -- Richard
>
> --
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
>
> _______________________________________________
> Xquartz-dev mailing list
> Xquartz-dev at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/xquartz-dev
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4465 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/xquartz-dev/attachments/20170601/3115e233/attachment.bin>
More information about the Xquartz-dev
mailing list