diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2014-08-05 10:12:34 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-08-14 16:04:24 +0200 |
commit | 87bea3731d9d379a9cbc57e664b5e2c00ffb5cb9 (patch) | |
tree | fee502d8909997403efdb2fd508fad639942249e /src/config/SSSDConfig/__init__.py.in | |
parent | 8a123db68d397f8e38a136ae8e9c00149e156818 (diff) | |
download | sssd-87bea3731d9d379a9cbc57e664b5e2c00ffb5cb9.tar.gz sssd-87bea3731d9d379a9cbc57e664b5e2c00ffb5cb9.tar.xz sssd-87bea3731d9d379a9cbc57e664b5e2c00ffb5cb9.zip |
Only replace space with the specified substitution
https://fedorahosted.org/sssd/ticket/2397
- make sss_replace_whitespaces only replace space (' ') not any
whitespace
- make sss_replace_whitespaces only replace a single char, not the whole
string
- rename CONFDB_NSS_OVERRIDE_DEFAULT_WHITESPACE to
CONFDB_NSS_OVERRIDE_DEFAULT_SPACE
- rename the override_default_whitespace option to override_space
- rename sss_replace_whitespaces() to sss_replace_space()
- rename sss_reverse_replace_whitespaces() to sss_reverse_replace_space()
- rename nctx->override_default_wsp_str to nctx->override_space
- make the return value of sss_replace_space non-const to avoid freeing
the result without compilation warnings
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
(cherry picked from commit 1f3127e88a87953f059c9a70d3582ae1719594b1)
Diffstat (limited to 'src/config/SSSDConfig/__init__.py.in')
-rw-r--r-- | src/config/SSSDConfig/__init__.py.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/SSSDConfig/__init__.py.in b/src/config/SSSDConfig/__init__.py.in index bbd18356c..48db1eb8f 100644 --- a/src/config/SSSDConfig/__init__.py.in +++ b/src/config/SSSDConfig/__init__.py.in @@ -72,7 +72,7 @@ option_strings = { 'shell_fallback' : _('If a shell stored in central directory is allowed but not available, use this fallback'), 'default_shell': _('Shell to use if the provider does not list one'), 'memcache_timeout': _('How long will be in-memory cache records valid'), - 'override_default_whitespace': _('All white spaces in group or user names will be replaced with this string'), + 'override_space': _('All spaces in group or user names will be replaced with this character'), # [pam] 'offline_credentials_expiration' : _('How long to allow cached logins between online logins (days)'), |