diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-12-20 09:48:02 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-12-20 09:48:02 +0000 |
commit | 89f97bb254ac71b5fff8bf6d703578ac900c7ed1 (patch) | |
tree | 375ebfc76cbf6ea74dd191806ae85eedbc9d1677 /source3/param/loadparm.c | |
parent | 01a382480a148f70384da65b38c936bedcb4ba6b (diff) | |
download | samba-89f97bb254ac71b5fff8bf6d703578ac900c7ed1.tar.gz samba-89f97bb254ac71b5fff8bf6d703578ac900c7ed1.tar.bz2 samba-89f97bb254ac71b5fff8bf6d703578ac900c7ed1.zip |
fixed sscanf() of gid_t values
(This used to be commit 102af994de6bbfbe94f13c1880fc31c6414c9f8e)
Diffstat (limited to 'source3/param/loadparm.c')
-rw-r--r-- | source3/param/loadparm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 8a8123ed18..f88361f7ab 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -2489,9 +2489,9 @@ BOOL lp_winbind_gid(gid_t *low, gid_t *high) static BOOL handle_winbind_uid(char *pszParmValue, char **ptr) { - int low, high; + uint32 low, high; - if (sscanf(pszParmValue, "%d-%d", &low, &high) != 2 || high < low) + if (sscanf(pszParmValue, "%u-%u", &low, &high) != 2 || high < low) return False; /* Parse OK */ @@ -2506,9 +2506,9 @@ static BOOL handle_winbind_uid(char *pszParmValue, char **ptr) static BOOL handle_winbind_gid(char *pszParmValue, char **ptr) { - gid_t low, high; + uint32 low, high; - if (sscanf(pszParmValue, "%d-%d", &low, &high) != 2 || high < low) + if (sscanf(pszParmValue, "%u-%u", &low, &high) != 2 || high < low) return False; /* Parse OK */ |