git: fdisk(8): check result of the read_disk() function

Sascha Wildner swildner at crater.dragonflybsd.org
Sat Aug 21 06:34:40 PDT 2021


commit 9fe225c4679584eca3138795e4fb5a6b05a2b62a
Author: Alexander Kuleshov <kuleshovmail at gmail.com>
Date:   Mon Dec 28 17:50:15 2015 +0600

    fdisk(8): check result of the read_disk() function
    
    During detection of the sector size, the read_disk function may
    return '-1'. This patch provides check for this case.

Summary of changes:
 sbin/fdisk/fdisk.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9fe225c4679584eca3138795e4fb5a6b05a2b62a


-- 
DragonFly BSD source repository



More information about the Commits mailing list