diff options
Diffstat (limited to 'util-linux')
| -rw-r--r-- | util-linux/volume_id/get_devname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/volume_id/get_devname.c b/util-linux/volume_id/get_devname.c index 39155f256..52bb8e03a 100644 --- a/util-linux/volume_id/get_devname.c +++ b/util-linux/volume_id/get_devname.c | |||
| @@ -110,7 +110,7 @@ uuidcache_check_device(struct recursive_state *state UNUSED_PARAM, | |||
| 110 | /* note: this check rejects links to devices, among other nodes */ | 110 | /* note: this check rejects links to devices, among other nodes */ |
| 111 | if (!S_ISBLK(statbuf->st_mode) | 111 | if (!S_ISBLK(statbuf->st_mode) |
| 112 | #if ENABLE_FEATURE_VOLUMEID_UBIFS | 112 | #if ENABLE_FEATURE_VOLUMEID_UBIFS |
| 113 | && !(S_ISCHR(statbuf->st_mode) && strncmp(bb_basename(device), "ubi", 3) == 0) | 113 | && !(S_ISCHR(statbuf->st_mode) && is_prefixed_with(bb_basename(device), "ubi")) |
| 114 | #endif | 114 | #endif |
| 115 | ) | 115 | ) |
| 116 | return TRUE; | 116 | return TRUE; |
