From c58f4965100692d8edcd613a341df9e2ad88cfa0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 14 Nov 1998 04:08:19 +0000 Subject: [PATCH] fixed setmode in smbclient --- source/client/clitar.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/source/client/clitar.c b/source/client/clitar.c index 49b076b5e65..e7915d10660 100644 --- a/source/client/clitar.c +++ b/source/client/clitar.c @@ -599,9 +599,8 @@ static int padit(char *buf, int bufsize, int padsize) static void do_setrattr(char *name, uint16 attr, int set) { uint16 oldattr; - time_t t; - if (!cli_getatr(cli, name, &oldattr, NULL, &t)) return; + if (!cli_getatr(cli, name, &oldattr, NULL, NULL)) return; if (set == ATTRSET) { attr |= oldattr; @@ -609,7 +608,7 @@ static void do_setrattr(char *name, uint16 attr, int set) attr = oldattr & ~attr; } - if (!cli_setatr(cli, name, attr, t)) { + if (!cli_setatr(cli, name, attr, 0)) { DEBUG(1,("setatr failed: %s\n", cli_errstr(cli))); } } @@ -1354,7 +1353,7 @@ void cmd_setmode(void) if (!next_token(NULL,buf,NULL,sizeof(buf))) { - DEBUG(0, ("setmode \n")); + DEBUG(0, ("setmode <[+|-]rsha>\n")); return; } @@ -1385,13 +1384,13 @@ void cmd_setmode(void) if (attra[ATTRSET]==0 && attra[ATTRRESET]==0) { - DEBUG(0, ("setmode \n")); + DEBUG(0, ("setmode <[+|-]rsha>\n")); return; } DEBUG(2, ("\nperm set %d %d\n", attra[ATTRSET], attra[ATTRRESET])); - (void) do_setrattr(fname, attra[ATTRSET], ATTRSET); - (void) do_setrattr(fname, attra[ATTRRESET], ATTRRESET); + do_setrattr(fname, attra[ATTRSET], ATTRSET); + do_setrattr(fname, attra[ATTRRESET], ATTRRESET); } /**************************************************************************** -- 2.11.4.GIT