git: tun/tap: Fix errno NODEV to NOENT in clone creation

Aaron LI aly at crater.dragonflybsd.org
Sat Jun 27 07:11:38 PDT 2020


commit ef83271127badd5200204dddb1af879478fbe031
Author: Aaron LI <aly at aaronly.me>
Date:   Sat Jun 27 19:23:00 2020 +0800

    tun/tap: Fix errno NODEV to NOENT in clone creation
    
    I was thinking 'NODEV' means 'no such device' but it actually means
    'operation not supported by device'...  So change this errno to 'NOENT'.
    
    While there, adjust the code a bit in if_tap.c to align with if_tun.c.

Summary of changes:
 sys/net/tap/if_tap.c | 8 +++-----
 sys/net/tun/if_tun.c | 6 +++---
 2 files changed, 6 insertions(+), 8 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ef83271127badd5200204dddb1af879478fbe031


-- 
DragonFly BSD source repository


More information about the Commits mailing list