Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/util-linux/volume_id/get_devname.c

    r3232 r3621  
    88 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    99 */
     10
     11//kbuild:lib-$(CONFIG_BLKID) += get_devname.o
     12//kbuild:lib-$(CONFIG_FINDFS) += get_devname.o
     13//kbuild:lib-$(CONFIG_FEATURE_MOUNT_LABEL) += get_devname.o
     14
    1015#include <sys/mount.h> /* BLKGETSIZE64 */
    1116#if !defined(BLKGETSIZE64)
     
    298303    char *tmp = *fsname;
    299304
    300     if (strncmp(*fsname, "UUID=", 5) == 0)
     305    if (is_prefixed_with(*fsname, "UUID="))
    301306        tmp = get_devname_from_uuid(*fsname + 5);
    302     else if (strncmp(*fsname, "LABEL=", 6) == 0)
     307    else if (is_prefixed_with(*fsname, "LABEL="))
    303308        tmp = get_devname_from_label(*fsname + 6);
    304309
Note: See TracChangeset for help on using the changeset viewer.