svn commit: samba r18702 - in branches/SAMBA_3_0/source/rpcclient: .
jmcd at samba.org
jmcd at samba.org
Wed Sep 20 00:02:51 GMT 2006
Author: jmcd
Date: 2006-09-20 00:02:51 +0000 (Wed, 20 Sep 2006)
New Revision: 18702
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18702
Log:
re-enable non-decimal specification of rid
Modified:
branches/SAMBA_3_0/source/rpcclient/cmd_samr.c
Changeset:
Modified: branches/SAMBA_3_0/source/rpcclient/cmd_samr.c
===================================================================
--- branches/SAMBA_3_0/source/rpcclient/cmd_samr.c 2006-09-19 23:45:43 UTC (rev 18701)
+++ branches/SAMBA_3_0/source/rpcclient/cmd_samr.c 2006-09-20 00:02:51 UTC (rev 18702)
@@ -342,14 +342,14 @@
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);
More information about the samba-cvs
mailing list