r14634: Many bug fixes thanks to train rides and overnight stays in airports
[metze/samba/wip.git] / source3 / param / loadparm.c
index 7b831d1e98db7c148a759d6748a5157bd1092cbe..0bde5805b07cbbbb26868f9089cc2acd8b448dc5 100644 (file)
@@ -3212,7 +3212,7 @@ static BOOL handle_idmap_uid(int snum, const char *pszParmValue, char **ptr)
 {
        uint32 low, high;
 
-       if (sscanf(pszParmValue, "%u-%u", &low, &high) != 2 || high < low)
+       if (sscanf(pszParmValue, "%u - %u", &low, &high) != 2 || high < low)
                return False;
 
        /* Parse OK */
@@ -3229,7 +3229,7 @@ static BOOL handle_idmap_gid(int snum, const char *pszParmValue, char **ptr)
 {
        uint32 low, high;
 
-       if (sscanf(pszParmValue, "%u-%u", &low, &high) != 2 || high < low)
+       if (sscanf(pszParmValue, "%u - %u", &low, &high) != 2 || high < low)
                return False;
 
        /* Parse OK */