diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-05-09 11:40:48 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:21:55 -0500 |
commit | a0f9db7a169886914b4e5323c61e127011a2d16b (patch) | |
tree | b98006fec9336fabacae0c343fa315f1d5abc00b /source3/utils | |
parent | 16ae8eff937c1344192a3afa84ff1eb14de5d46d (diff) | |
download | samba-a0f9db7a169886914b4e5323c61e127011a2d16b.tar.gz samba-a0f9db7a169886914b4e5323c61e127011a2d16b.tar.bz2 samba-a0f9db7a169886914b4e5323c61e127011a2d16b.zip |
r22767: Argl. Typed in 'svn ci' in the wrong branch. Revert.
(This used to be commit 2c5b951eba509e826a29775db992aca474476484)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_sam.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/source3/utils/net_sam.c b/source3/utils/net_sam.c index 06fc73da4b..4d3102b51f 100644 --- a/source3/utils/net_sam.c +++ b/source3/utils/net_sam.c @@ -580,7 +580,7 @@ static int net_sam_deletelocalgroup(int argc, const char **argv) DOM_SID sid; enum lsa_SidType type; const char *dom, *name; - NTSTATUS status; + int ret; if (argc != 1) { d_fprintf(stderr, "usage: net sam deletelocalgroup <name>\n"); @@ -589,7 +589,7 @@ static int net_sam_deletelocalgroup(int argc, const char **argv) if (!lookup_name(tmp_talloc_ctx(), argv[0], LOOKUP_NAME_ISOLATED, &dom, &name, &sid, &type)) { - d_fprintf(stderr, "Could not find %s.\n", argv[0]); + d_fprintf(stderr, "Could not find name %s.\n", argv[0]); return -1; } @@ -599,13 +599,12 @@ static int net_sam_deletelocalgroup(int argc, const char **argv) return -1; } - status = pdb_delete_alias(&sid); + ret = pdb_delete_alias(&sid); - if (!NT_STATUS_IS_OK(status)) { - d_fprintf(stderr, "Deleting local group %s failed with %s\n", - argv[0], nt_errstr(status)); - return -1; - } + if ( !ret ) { + d_fprintf(stderr, "Could not delete local group %s.\n", argv[0]); + return -1; + } d_printf("Deleted local group %s.\n", argv[0]); |