summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-11-14 04:08:19 +0000
committerAndrew Tridgell <tridge@samba.org>1998-11-14 04:08:19 +0000
commitc57ab7807d28e642fcbf3315bcb336db03cc0625 (patch)
tree882eec78312406112ad6b3f5bb5bced876456a3b /source3
parentc800cda01d8dece47d4c76de06175976ee365be0 (diff)
downloadsamba-c57ab7807d28e642fcbf3315bcb336db03cc0625.tar.gz
samba-c57ab7807d28e642fcbf3315bcb336db03cc0625.tar.bz2
samba-c57ab7807d28e642fcbf3315bcb336db03cc0625.zip
fixed setmode in smbclient
(This used to be commit c58f4965100692d8edcd613a341df9e2ad88cfa0)
Diffstat (limited to 'source3')
-rw-r--r--source3/client/clitar.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/source3/client/clitar.c b/source3/client/clitar.c
index 49b076b5e6..e7915d1066 100644
--- a/source3/client/clitar.c
+++ b/source3/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 <filename> <perm=[+|-]rsha>\n"));
+ DEBUG(0, ("setmode <filename> <[+|-]rsha>\n"));
return;
}
@@ -1385,13 +1384,13 @@ void cmd_setmode(void)
if (attra[ATTRSET]==0 && attra[ATTRRESET]==0)
{
- DEBUG(0, ("setmode <filename> <perm=[+|-]rsha>\n"));
+ DEBUG(0, ("setmode <filename> <[+|-]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);
}
/****************************************************************************