chiark / gitweb /
volume_id: add Veritas fs
[elogind.git] / extras / volume_id / vol_id.c
index fe0b3a0ed070039201fd426cf53850d7b5f605b2..2b53085c72a6bdc31a624e8698af5b8664d09879 100644 (file)
@@ -145,6 +145,7 @@ int main(int argc, char *argv[])
 
        if (ioctl(vid->fd, BLKGETSIZE64, &size) != 0)
                size = 0;
+       dbg("BLKGETSIZE64=%llu", size);
 
        if (volume_id_probe_all(vid, 0, size) == 0)
                goto print;
@@ -156,6 +157,7 @@ int main(int argc, char *argv[])
 
 print:
        set_str(name, vid->label, sizeof(vid->label));
+       replace_untrusted_chars(name);
 
        switch (print) {
        case PRINT_EXPORT: