diff options
author | Jeremy Allison <jra@samba.org> | 1998-11-09 20:33:37 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-11-09 20:33:37 +0000 |
commit | e4f974c611c179a5e7827ec8325e01811db6540b (patch) | |
tree | eb86d4e8b53c4ee052645cd86acd08f76f75d5b5 /source3/client | |
parent | 748fe7a383e50079493648839cf0ab69aa2223a0 (diff) | |
download | samba-e4f974c611c179a5e7827ec8325e01811db6540b.tar.gz samba-e4f974c611c179a5e7827ec8325e01811db6540b.tar.bz2 samba-e4f974c611c179a5e7827ec8325e01811db6540b.zip |
Makefile.in: Removed rpc_server/srv_ldap_helpers.c per J.F.'s instructions.
client/client.c:
client/clitar.c:
include/client.h:
smbwrapper/smbw_dir.c:
smbwrapper/smbw_stat.c:
smbwrapper/smbw.c:
lib/util.c: Converted all use of 'mode' to uint16.
smbd/quotas.c: Fixed stupid comment bug I put in there :-(.
printing/printing.c: Fix from J.F. to new code.
Jeremy.
(This used to be commit bacd3e9d2036a804e73644a28fc498f229c8446c)
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/client.c | 28 | ||||
-rw-r--r-- | source3/client/clitar.c | 15 |
2 files changed, 14 insertions, 29 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 13f5adec05..e23875fc1b 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -40,7 +40,6 @@ static pstring username; static pstring workgroup; static char *cmdstr; static BOOL got_pass; -static BOOL no_pass; extern struct in_addr ipzero; extern pstring scope; @@ -390,7 +389,7 @@ static void do_list_helper(file_info *f, const char *mask) /**************************************************************************** a wrapper around cli_list that adds recursion ****************************************************************************/ -void do_list(const char *mask,int attribute,void (*fn)(file_info *),BOOL rec, BOOL dirs) +void do_list(const char *mask,uint16 attribute,void (*fn)(file_info *),BOOL rec, BOOL dirs) { do_list_recurse = rec; do_list_dirs = dirs; @@ -405,7 +404,7 @@ void do_list(const char *mask,int attribute,void (*fn)(file_info *),BOOL rec, BO ****************************************************************************/ static void cmd_dir(void) { - int attribute = aDIR | aSYSTEM | aHIDDEN; + uint16 attribute = aDIR | aSYSTEM | aHIDDEN; pstring mask; fstring buf; char *p=buf; @@ -439,7 +438,7 @@ static void cmd_dir(void) ****************************************************************************/ static void cmd_du(void) { - int attribute = aDIR | aSYSTEM | aHIDDEN; + uint16 attribute = aDIR | aSYSTEM | aHIDDEN; pstring mask; fstring buf; char *p=buf; @@ -477,7 +476,7 @@ static void do_get(char *rname,char *lname) char *data; struct timeval tp_start; int read_size = 65520; - uint32 attr; + uint16 attr; size_t size; off_t nread = 0; @@ -539,7 +538,7 @@ static void do_get(char *rname,char *lname) } if (archive_level >= 2 && (attr & aARCH)) { - cli_setatr(cli, rname, attr & ~aARCH, 0); + cli_setatr(cli, rname, attr & ~(uint16)aARCH, 0); } { @@ -691,7 +690,7 @@ do a mget command ****************************************************************************/ static void cmd_mget(void) { - int attribute = aSYSTEM | aHIDDEN; + uint16 attribute = aSYSTEM | aHIDDEN; pstring mget_mask; fstring buf; char *p=buf; @@ -893,8 +892,6 @@ static void cmd_put(void) pstring rname; fstring buf; char *p=buf; - file_info finfo; - finfo = def_finfo; pstrcpy(rname,cur_dir); pstrcat(rname,"\\"); @@ -921,7 +918,6 @@ static void cmd_put(void) DEBUG(0,("%s does not exist\n",lname)); return; } - finfo.mtime = st.st_mtime; } do_put(rname,lname); @@ -965,12 +961,9 @@ static void cmd_mput(void) { pstring lname; pstring rname; - file_info finfo; fstring buf; char *p=buf; - finfo = def_finfo; - while (next_token(NULL,p,NULL,sizeof(buf))) { SMB_STRUCT_STAT st; pstring cmd; @@ -1030,12 +1023,6 @@ static void cmd_mput(void) dos_format(rname); - /* null size so do_put knows to ignore it */ - finfo.size = -1; - - /* set the date on the file */ - finfo.mtime = st.st_mtime; - do_put(rname,lname); } fclose(f); @@ -1145,7 +1132,7 @@ static void cmd_del(void) { pstring mask; fstring buf; - int attribute = aSYSTEM | aHIDDEN; + uint16 attribute = aSYSTEM | aHIDDEN; if (recurse) attribute |= aDIR; @@ -2055,7 +2042,6 @@ static int do_message_op(void) break; case 'N': got_pass = True; - no_pass = True; break; case 'n': pstrcpy(global_myname,optarg); diff --git a/source3/client/clitar.c b/source3/client/clitar.c index 8ebe9dc853..aade8fcb6f 100644 --- a/source3/client/clitar.c +++ b/source3/client/clitar.c @@ -45,8 +45,8 @@ typedef struct file_info_struct file_info2; struct file_info_struct { - int size; - int mode; + size_t size; + uint16 mode; int uid; int gid; /* These times are normally kept in GMT */ @@ -77,7 +77,7 @@ extern struct cli_state *cli; #define ATTRSET 1 #define ATTRRESET 0 -static int attribute = aDIR | aSYSTEM | aHIDDEN; +static uint16 attribute = aDIR | aSYSTEM | aHIDDEN; #ifndef CLIENT_TIMEOUT #define CLIENT_TIMEOUT (30*1000) @@ -596,9 +596,9 @@ static int padit(char *buf, int bufsize, int padsize) } -static void do_setrattr(char *name, int attr, int set) +static void do_setrattr(char *name, uint16 attr, int set) { - int oldattr; + uint16 oldattr; time_t t; if (!cli_getatr(cli, name, &oldattr, NULL, &t)) return; @@ -622,7 +622,7 @@ static void do_atar(char *rname,char *lname,file_info *finfo1) { int fnum; uint32 nread=0; - char *p, ftype; + char ftype; file_info2 finfo; BOOL close_done = False; BOOL shallitime=True; @@ -718,7 +718,6 @@ static void do_atar(char *rname,char *lname,file_info *finfo1) writetarheader(tarhandle, rname, finfo.size, finfo.mtime, "100644 \0", ftype); while (nread < finfo.size && !close_done) { - p=NULL; DEBUG(3,("nread=%d\n",nread)); @@ -1348,7 +1347,7 @@ void cmd_setmode(void) char *q; fstring buf; pstring fname; - int attra[2]; + uint16 attra[2]; int direct=1; attra[0] = attra[1] = 0; |