git: world - Fix sysctlbyname() errno handling cases
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Jun 8 23:06:02 PDT 2016
commit 088b2e6829c8b2435f30ddec170f32b1f5c90cb4
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/088b2e6829c8b2435f30ddec170f32b1f5c90cb4
--
DragonFly BSD source repository
More information about the Commits
mailing list