summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2006-09-20 00:02:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:00:49 -0500
commit47bb2e183961c7b9726002c6747ec3289898d043 (patch)
tree1e38cbc517089f7155f9912046aebc34088fa4bb /source3
parent447905db7df66911e2839e5c289817161429b3bc (diff)
downloadsamba-47bb2e183961c7b9726002c6747ec3289898d043.tar.gz
samba-47bb2e183961c7b9726002c6747ec3289898d043.tar.bz2
samba-47bb2e183961c7b9726002c6747ec3289898d043.zip
r18702: re-enable non-decimal specification of rid
(This used to be commit f3ff07404650e4b9846367ba981764b1a879bca9)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_samr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c
index 1d1142e380..6f4d027cca 100644
--- a/source3/rpcclient/cmd_samr.c
+++ b/source3/rpcclient/cmd_samr.c
@@ -342,14 +342,14 @@ static NTSTATUS cmd_samr_query_user(struct rpc_pipe_client *cli,
uint32 access_mask = MAXIMUM_ALLOWED_ACCESS;
SAM_USERINFO_CTR *user_ctr;
fstring server;
- uint32 user_rid;
+ uint32 user_rid = 0;
if ((argc < 2) || (argc > 4)) {
printf("Usage: %s rid [info level] [access mask] \n", argv[0]);
return NT_STATUS_OK;
}
- user_rid = strtoul(argv[1], NULL, 10);
+ sscanf(argv[1], "%i", &user_rid);
if (argc > 2)
sscanf(argv[2], "%i", &info_level);