diff options
Diffstat (limited to 'util-linux/blkid.c')
-rw-r--r-- | util-linux/blkid.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/util-linux/blkid.c b/util-linux/blkid.c index 53f13a9..fe88fb3 100644 --- a/util-linux/blkid.c +++ b/util-linux/blkid.c @@ -13,8 +13,13 @@ //TODO: extend to take BLOCKDEV args, and show TYPE="fstype" int blkid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; -int blkid_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) +int blkid_main(int argc UNUSED_PARAM, char **argv) { + while (*++argv) { + /* Note: bogus device names don't cause any error messages */ + add_to_uuid_cache(*argv); + } + display_uuid_cache(); return 0; } |