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/libbb/find_mount_point.c

    r2725 r3232  
    3131    devno_of_name = s.st_dev;
    3232    block_dev = 0;
    33     if (S_ISBLK(s.st_mode)) {
     33    /* Why S_ISCHR? - UBI volumes use char devices, not block */
     34    if (S_ISBLK(s.st_mode) || S_ISCHR(s.st_mode)) {
    3435        devno_of_name = s.st_rdev;
    3536        block_dev = 1;
     
    4445         * and it makes sense to always ignore it.
    4546         * Otherwise people can't reference their "real" root! */
    46         if (strcmp(mountEntry->mnt_fsname, "rootfs") == 0)
     47        if (ENABLE_FEATURE_SKIP_ROOTFS && strcmp(mountEntry->mnt_fsname, "rootfs") == 0)
    4748            continue;
    4849
Note: See TracChangeset for help on using the changeset viewer.