]> git.ipfire.org Git - thirdparty/samba.git/commit
vfs_snapper: add DBus string encoding and decoding helpers
authorDavid Disseldorp <ddiss@samba.org>
Wed, 21 Jan 2015 17:16:56 +0000 (18:16 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sat, 24 Jan 2015 21:16:11 +0000 (22:16 +0100)
commit428c5826d0dd4421f01be02d906be34a9925990b
tree35b2d2b4196fef109e7102713fcf8897ebff9689
parent1381ac030864b19a4194ca90a4f6fad74b20b8dd
vfs_snapper: add DBus string encoding and decoding helpers

Snapper uses the following mechanism for encoding and decoding strings
used in DBus traffic:
Characters above 127 (0x7F - ASCII DEL) must be encoded hexadecimal as
"\x??". As a consequence "\" must be encoded as "\\".

This change adds string encoding and decoding helpers to vfs_snapper.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11055

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 3d48fc96739bde631f8197aa313a81808481adf3)
source3/modules/vfs_snapper.c