summaryrefslogtreecommitdiff
path: root/source3/sam
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2003-06-11 20:06:11 +0000
committerVolker Lendecke <vlendec@samba.org>2003-06-11 20:06:11 +0000
commit36a9033de83d4817cff65f1a8603c597ec37f70a (patch)
treec2a8db72f1e4bd3d9d3a2d7b2914fd29b8cf3465 /source3/sam
parent6d360a15d93e88448a09bbd3e9daa7ca71920d74 (diff)
downloadsamba-36a9033de83d4817cff65f1a8603c597ec37f70a.tar.gz
samba-36a9033de83d4817cff65f1a8603c597ec37f70a.tar.bz2
samba-36a9033de83d4817cff65f1a8603c597ec37f70a.zip
Sorry idra for messing around with your stuff, but this was obviously not
tested. Incrementing HWW_USER while allocating a GROUPID looked somewhat wrong. Volker (This used to be commit d1eac2c75856f8f1dec8d429feb24a5f05fa6ca8)
Diffstat (limited to 'source3/sam')
-rw-r--r--source3/sam/idmap_tdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/sam/idmap_tdb.c b/source3/sam/idmap_tdb.c
index 209f9066e0..01d198e8d5 100644
--- a/source3/sam/idmap_tdb.c
+++ b/source3/sam/idmap_tdb.c
@@ -94,7 +94,7 @@ static NTSTATUS db_allocate_id(unid_t *id, int id_type)
}
/* fetch a new id and increment it */
- ret = tdb_change_uint32_atomic(idmap_tdb, HWM_USER, &hwm, 1);
+ ret = tdb_change_uint32_atomic(idmap_tdb, HWM_GROUP, &hwm, 1);
if (!ret) {
DEBUG(0, ("idmap_tdb: Fatal error while fetching a new id\n!"));
@@ -102,8 +102,8 @@ static NTSTATUS db_allocate_id(unid_t *id, int id_type)
}
/* recheck it is in the range */
- if (hwm > idmap_state.uid_high) {
- DEBUG(0, ("idmap Fatal Error: UID range full!! (max: %u)\n", idmap_state.uid_high));
+ if (hwm > idmap_state.gid_high) {
+ DEBUG(0, ("idmap Fatal Error: GID range full!! (max: %u)\n", idmap_state.gid_high));
return NT_STATUS_UNSUCCESSFUL;
}