Try to read remote pwd from stdin as a file
Try to read remote pwd from stdin as a file

In case someone does 'echo foo | lxc remote add' (as we do in the tests), if we
get an ioctl error from trying to treat stdin as a tty, we should try to read
it as a file.

Signed-off-by: Tycho Andersen <10c18fcb898ee6b17d6575d444b125d10b3f4d6a@canonical.com>

georghopp/lxd,stgraber/lxd,jsavikko/lxd,ericsnowcurrently/lxd,sl1pm4t/lxd,atxwebs/lxd,techtonik/lxd,chrisglass/lxd,pcdummy/lxd,achanda/lxd,jumpstarter-io/lxd,Malizor/lxd,akshaykarle/lxd,jsavikko/lxd,achanda/lxd,yura-pakhuchiy/lxd,erikmack/lxd,atxwebs/lxd,yura-pakhuchiy/lxd,ollie314/lxd,lxc/lxd,atxwebs/lxd,akshaykarle/lxd,stgraber/lxd,ericsnowcurrently/lxd,ollie314/lxd,benaryorg/lxd,techtonik/lxd,jumpstarter-io/lxd,Skarlso/lxd,erikmack/lxd,smoser/lxd,hallyn/lxd,beni55/lxd,lxc/lxd,Malizor/lxd,hallyn/lxd,achanda/lxd,stgraber/lxd,jensg-st/lxd,basvanbeek/lxd,dustinkirkland/lxd,smoser/lxd,hallyn/lxd,ericsnowcurrently/lxd,mjeanson/lxd,erikmack/lxd,jensg-st/lxd,Skarlso/lxd,beni55/lxd,akshaykarle/lxd,sl1pm4t/lxd,chrisglass/lxd,mjeanson/lxd,hallyn/lxd,yura-pakhuchiy/lxd,mikemccracken/lxd,benaryorg/lxd,stgraber/lxd,lxc/lxd,georghopp/lxd,hallyn/lxd,lxc/lxd,jensg-st/lxd,stgraber/lxd,rrva/lxd,pcdummy/lxd,mikemccracken/lxd,atxwebs/lxd,tych0/lxd,jumpstarter-io/lxd,hallyn/lxd,Skarlso/lxd,beni55/lxd,mjeanson/lxd,pcdummy/lxd,stgraber/lxd,dustinkirkland/lxd,georghopp/lxd,lxc/lxd,basvanbeek/lxd,tych0/lxd,dvbportal/osx-lxd,smoser/lxd,techtonik/lxd,benaryorg/lxd,chrisglass/lxd,mikemccracken/lxd,Malizor/lxd,rrva/lxd,dustinkirkland/lxd,basvanbeek/lxd,rrva/lxd,stgraber/lxd,tych0/lxd,dvbportal/osx-lxd,Skarlso/lxd,jsavikko/lxd,rcj4747/lxd,sl1pm4t/lxd,rcj4747/lxd,lxc/lxd,dvbportal/osx-lxd,rcj4747/lxd,ollie314/lxd,lxc/lxd