git: DragonFly_RELEASE_4_4 world - Fix sysctlbyname() errno handling cases

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Jun 19 19:56:09 PDT 2016


commit f005d7782ad0a64710d63b8385adb7afaaadab34
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Jun 8 23:04:18 2016 -0700

    world - Fix sysctlbyname() errno handling cases
    
    * A number of routines inherited some bad code from each other,
      The return value from sysctlbyname() was not being tested prior
      to checking errno.  Reformulate.
    
    Reported-by: Stephen Welker stephen.welker at nemostar.com.au

Summary of changes:
 sbin/fdisk/fdisk.c               | 3 +--
 sbin/mount_ufs/mount_ufs.c       | 3 +--
 sbin/newfs/newfs.c               | 4 +---
 sbin/newfs_hammer/newfs_hammer.c | 3 +--
 sbin/swapon/swapon.c             | 3 +--
 5 files changed, 5 insertions(+), 11 deletions(-)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list