On 01/23/2017 02:50 PM, Achim Gratz wrote:
Corinna Vinschen writes:
COMPUTERNAME is the same as LOGONSERVER on non-domain machines as well
as on domain controllers. So this `if' test if the machine is a domain
member machine.
I can supply another cornercase where LOGONSERVER is not set: if you run
an sshd under the (only) user that can log in, that ssh session has no
LOGONSERVER set.
Regards,
Achim.
FWIW
On my W10 machine (CYGWIN_NT-10.0 rwells-x220 2.6.0(0.304/5/3)
2016-08-31 14:32 x86_64 Cygwin)
they are both defined and different.
AFAICS I am the only configured user.
--
Roger Wells, P.E.
leidos
221 Third St
Newport, RI 02840
401-847-4210 (voice)
401-849-1585 (fax)
roger.k.we...@leidos.com
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple