1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-04 16:58:42 +03:00

s3-clitar: Improve readabilty of cmd_setmode().

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
This commit is contained in:
Andreas Schneider 2014-02-17 10:50:17 +01:00
parent 7bb9836c94
commit 034da62e6b

View File

@ -394,9 +394,11 @@ int cmd_setmode(void)
int mode = ATTR_SET;
TALLOC_CTX *ctx = PANIC_IF_NULL(talloc_new(NULL));
int err = 0;
bool ok;
if (!next_token_talloc(ctx, &cmd_ptr, &buf, NULL)) {
ok = next_token_talloc(ctx, &cmd_ptr, &buf, NULL);
if (!ok) {
DBG(0, ("setmode <filename> <[+|-]rsha>\n"));
err = 1;
goto out;
@ -406,7 +408,7 @@ int cmd_setmode(void)
"%s%s",
client_get_cur_dir(),
buf));
if (!fname) {
if (fname == NULL) {
err = 1;
goto out;
}