]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Break 'try 256 dco devices' loop on EPERM
authorGert Doering <gert@greenie.muc.de>
Thu, 4 Aug 2022 08:25:02 +0000 (10:25 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 5 Aug 2022 10:59:32 +0000 (12:59 +0200)
commit78c02dd12bcfe7c4b4e96ea534b39ade9ee2c4d6
tree161523e884f77e3018502024981c840fe12f989c
parentfba724e3fc958b5704dc22dd14ec93f4bb4d9e34
Break 'try 256 dco devices' loop on EPERM

If we get a permission denied error on one DCO device, trying 255 more
times will not succeed, and just fill the log file with errors.

Also, remove the msg() call there because it was at debug level
(needed --verb 4 to be seen), didn't see the correct errno, and the
sitnl code already prints the error.

v2: use "else if"

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Antonio Quartulli <a@unstable.cc>
Message-Id: <20220804082502.1750074-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24799.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/openvpn/tun.c