Kamil Dudka eb93a8
From 846ca47a2411f33c8ca0572b0e565664d851fee4 Mon Sep 17 00:00:00 2001
Kamil Dudka eb93a8
From: Kamil Dudka <kdudka@redhat.com>
Kamil Dudka eb93a8
Date: Fri, 19 Nov 2010 12:40:11 +0100
Kamil Dudka eb93a8
Subject: [PATCH] setfattr.1: document supported encodings of values
Kamil Dudka eb93a8
Kamil Dudka eb93a8
reported by Tomasz Kepczynski at https://bugzilla.redhat.com/58751
Kamil Dudka eb93a8
---
Kamil Dudka eb93a8
 man/man1/setfattr.1 |   10 +++++++++-
Kamil Dudka eb93a8
 1 files changed, 9 insertions(+), 1 deletions(-)
Kamil Dudka eb93a8
Kamil Dudka eb93a8
diff --git a/man/man1/setfattr.1 b/man/man1/setfattr.1
Kamil Dudka eb93a8
index c36b024..2d33f50 100644
Kamil Dudka eb93a8
--- a/man/man1/setfattr.1
Kamil Dudka eb93a8
+++ b/man/man1/setfattr.1
Kamil Dudka eb93a8
@@ -46,7 +46,15 @@ for each specified file.
Kamil Dudka eb93a8
 Specifies the name of the extended attribute to set.
Kamil Dudka eb93a8
 .TP
Kamil Dudka eb93a8
 .BR \-v " \f2value\f1, " \-\-value "=\f2value\f1"
Kamil Dudka eb93a8
-Specifies the new value for the extended attribute.
Kamil Dudka eb93a8
+Specifies the new value of the extended attribute. There are three methods
Kamil Dudka eb93a8
+available for encoding the value.  If the given string is enclosed in double
Kamil Dudka eb93a8
+quotes, the inner string is treated as text. In that case, backslashes and
Kamil Dudka eb93a8
+double quotes have special meanings and need to be escaped by a preceding
Kamil Dudka eb93a8
+backslash. Any control characters can be encoded as a backslash followed by
Kamil Dudka eb93a8
+three digits as its ASCII code in octal. If the given string begins with 0x or
Kamil Dudka eb93a8
+0X, it expresses a hexadecimal number. If the given string begins with 0s or
Kamil Dudka eb93a8
+0S, base64 encoding is expected.  See also the \-\-encoding option of
Kamil Dudka eb93a8
+getfattr(1).
Kamil Dudka eb93a8
 .TP
Kamil Dudka eb93a8
 .BR \-x " \f2name\f1, " \-\-remove "=\f2name\f1"
Kamil Dudka eb93a8
 Remove the named extended attribute entirely.
Kamil Dudka eb93a8
-- 
Kamil Dudka eb93a8
1.7.3.3
Kamil Dudka eb93a8