r18702: re-enable non-decimal specification of rid
authorJim McDonough <jmcd@samba.org>
Wed, 20 Sep 2006 00:02:51 +0000 (00:02 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:00:49 +0000 (12:00 -0500)
(This used to be commit f3ff07404650e4b9846367ba981764b1a879bca9)

source3/rpcclient/cmd_samr.c

index 1d1142e3803910fda228f67ddf8db0784b0dfec5..6f4d027cca924bb0b400b569ab36e9ef96ef011b 100644 (file)
@@ -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);