diff options
author | Karel Zak <kzak@redhat.com> | 2010-06-02 16:11:52 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2010-06-02 16:11:52 +0200 |
commit | 0159857e0d2a2fc4b1fec78b9b8dcd9982c00105 (patch) | |
tree | 8a6e8fd96aef2cfa3e243d7940d8e718bf8b0b94 /misc-utils | |
parent | 8604c25570baaaf814b95199fd0592147d8616c1 (diff) | |
download | util-linux-old-0159857e0d2a2fc4b1fec78b9b8dcd9982c00105.tar.gz |
blkid: remove _ENC from ID_PART_ENTRY_{NAME,TYPE} variables
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>
Diffstat (limited to 'misc-utils')
-rw-r--r-- | misc-utils/blkid.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c index 48af7674..f94df06a 100644 --- a/misc-utils/blkid.c +++ b/misc-utils/blkid.c @@ -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); |