From: Guus Sliepen Date: Wed, 29 Jan 2014 16:17:59 +0000 (+0100) Subject: Don't ask questions if we are not running interactively. X-Git-Tag: release-1.1pre10~9 X-Git-Url: http://tinc-vpn.org/git/browse?a=commitdiff_plain;ds=sidebyside;h=2e318f379992a730f592b4c5261d26d8e1a38cfd;hp=2e318f379992a730f592b4c5261d26d8e1a38cfd;p=tinc Don't ask questions if we are not running interactively. When creating invitations or using them to join a VPN, and the tinc command is not run interactively (ie, when stdin and stdout are not connected or redirected to/from a file), don't ask questions. If normally tinc would ask for a confirmation, just assume the default answer instead. If tinc really needs some input, just print an error message instead. In case an invitation is used for a VPN which uses a netname that is already in use on the local host, tinc will store the configuration in a temporary directory. Normally it asks for an alternative netname and then renames the temporary directory, but when not run interactively, it now just prints the location of the unchanged temporary directory. ---