diff options
author | Jim McDonough <jmcd@samba.org> | 2006-09-20 00:02:51 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:00:49 -0500 |
commit | f3ff07404650e4b9846367ba981764b1a879bca9 (patch) | |
tree | 1b47ece2889bf1f1d4c2dcf991fe83d7a93b48e0 | |
parent | 31e3cc8c6f10a3d1ea8f357c26c80fe47ab276dc (diff) | |
download | samba-f3ff07404650e4b9846367ba981764b1a879bca9.tar.gz |
r18702: re-enable non-decimal specification of rid
-rw-r--r-- | source/rpcclient/cmd_samr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpcclient/cmd_samr.c b/source/rpcclient/cmd_samr.c index 1d1142e3803..6f4d027cca9 100644 --- a/source/rpcclient/cmd_samr.c +++ b/source/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); |