]> err.no Git - util-linux/commitdiff
blkid: remove _ENC from ID_PART_ENTRY_{NAME,TYPE} variables
authorKarel Zak <kzak@redhat.com>
Wed, 2 Jun 2010 14:11:52 +0000 (16:11 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 2 Jun 2010 14:11:52 +0000 (16:11 +0200)
The *_ENC variables are deprecated. All stuff for udev should be
encoded.

Reported-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/blkid.c

index 48af76742d6a0b49dae03bae4b2456533b611f5c..f94df06a1b2534436fe3155013f0339f09def8c5 100644 (file)
@@ -268,11 +268,8 @@ static void print_udev_format(const char *name, const char *value, size_t sz)
        } else if (!strcmp(name, "PART_ENTRY_NAME") ||
                  !strcmp(name, "PART_ENTRY_TYPE")) {
 
-               blkid_safe_string(value, safe, sizeof(safe));
-               printf("ID_%s=%s\n", name, safe);
-
                blkid_encode_string(value, enc, sizeof(enc));
-               printf("ID_%s_ENC=%s\n", name, enc);
+               printf("ID_%s=%s\n", name, enc);
 
        } else if (!strncmp(name, "PART_ENTRY_", 11))
                printf("ID_%s=%s\n", name, value);