summaryrefslogtreecommitdiffstats
path: root/BUILD.txt
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2014-08-25 10:36:46 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-09-01 17:02:53 +0200
commitbc4b852c36ee6d36e12592c37e4e3bfe497f8c68 (patch)
tree7d8388a39d9d35c6399cc6c207fb5c702de9c88c /BUILD.txt
parent7f59cc485c935bd3bca9900b03eb24e755f9bdfd (diff)
downloadsssd-bc4b852c36ee6d36e12592c37e4e3bfe497f8c68.tar.gz
sssd-bc4b852c36ee6d36e12592c37e4e3bfe497f8c68.tar.xz
sssd-bc4b852c36ee6d36e12592c37e4e3bfe497f8c68.zip
Replace space: add some checks
This patch adds some additional checks if the option for replacing spaces in user and group names is used. When replacing space with the replacement character it is checked if the name already contains the replacement character. If it does the unmodified name is returned because in this case a revers operation would not be possible. For the reverse operation is it checked if the input contains both a space and the replacement character. If this is true the unmodified name is returned as well, because we have to assume that it is the original name because otherwise it wouldn't contain both characters. Additionally a shortcut if the replacement characters is a space and tests for the new checks are added. The man page is updated accordingly. Related to https://fedorahosted.org/sssd/ticket/1854 and https://fedorahosted.org/sssd/ticket/2397 . Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> (cherry picked from commit 92d19f76449817dfb125da9510d478a30eed37bc)
Diffstat (limited to 'BUILD.txt')
0 files changed, 0 insertions, 0 deletions