diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2026-02-07 01:10:55 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2026-02-07 01:10:55 +0100 |
| commit | 9693daaaef1b996d0efc5338cf3707bb6205fee9 (patch) | |
| tree | 90c88c146f0c1b8b0b78102fe2cf3804dec584ae /util-linux | |
| parent | 79d35b5a0eae5d0784f34a9dcb6774220aedb611 (diff) | |
| download | busybox-w32-9693daaaef1b996d0efc5338cf3707bb6205fee9.tar.gz busybox-w32-9693daaaef1b996d0efc5338cf3707bb6205fee9.tar.bz2 busybox-w32-9693daaaef1b996d0efc5338cf3707bb6205fee9.zip | |
*: use is_prefixed_with() where appropriate
function old new delta
resume_main 560 556 -4
uuidcache_check_device 107 101 -6
ntp_init 1005 997 -8
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-18) Total: -18 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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; |
