Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (7 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/e2fsprogs/old_e2fsprogs/blkid/probe.c

    r2725 r3232  
    576576           dev->bid_name, diff));
    577577
    578     if (((fd = open(dev->bid_name, O_RDONLY)) < 0) ||
    579         (fstat(fd, &st) < 0)) {
     578    fd = open(dev->bid_name, O_RDONLY);
     579    if (fd < 0
     580     || fstat(fd, &st) < 0
     581    ) {
     582        if (fd >= 0)
     583            close(fd);
    580584        if (errno == ENXIO || errno == ENODEV || errno == ENOENT) {
    581585            blkid_free_dev(dev);
     
    654658    if (!dev->bid_type) {
    655659        blkid_free_dev(dev);
     660        close(fd);
    656661        return NULL;
    657662    }
Note: See TracChangeset for help on using the changeset viewer.