diff options
author | Herb Lewis <herb@samba.org> | 2002-12-03 20:00:31 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 2002-12-03 20:00:31 +0000 |
commit | db9686ff893c5a47249610e494a6bfad1168caf2 (patch) | |
tree | c0d6899a3d58907e420c120b0d6b70daf85b7624 /source3/libsmb | |
parent | 34c7d4803330248e19c08f9a3b29395369d4199f (diff) | |
download | samba-db9686ff893c5a47249610e494a6bfad1168caf2.tar.gz samba-db9686ff893c5a47249610e494a6bfad1168caf2.tar.bz2 samba-db9686ff893c5a47249610e494a6bfad1168caf2.zip |
use the new IVAL_TO_SMB_OFF_T for file_info size member
dir now shows correct size on large files
(This used to be commit ce7d421ba9cfa65e3ed404f18e8b3b4cf4730593)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clilist.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c index 3eacc25380..1616d46bf1 100644 --- a/source3/libsmb/clilist.c +++ b/source3/libsmb/clilist.c @@ -48,7 +48,7 @@ static int interpret_long_filename(struct cli_state *cli, finfo->ctime = make_unix_date2(p+4); finfo->atime = make_unix_date2(p+8); finfo->mtime = make_unix_date2(p+12); - finfo->size = IVAL(p,16); + finfo->size = IVAL_TO_SMB_OFF_T(p,16); finfo->mode = CVAL(p,24); len = CVAL(p, 26); p += 27; @@ -69,7 +69,7 @@ static int interpret_long_filename(struct cli_state *cli, finfo->ctime = make_unix_date2(p+4); finfo->atime = make_unix_date2(p+8); finfo->mtime = make_unix_date2(p+12); - finfo->size = IVAL(p,16); + finfo->size = IVAL_TO_SMB_OFF_T(p,16); finfo->mode = CVAL(p,24); len = CVAL(p, 30); p += 31; @@ -104,7 +104,7 @@ static int interpret_long_filename(struct cli_state *cli, finfo->ctime = interpret_long_date(p); p += 8; finfo->atime = interpret_long_date(p); p += 8; finfo->mtime = interpret_long_date(p); p += 8; p += 8; - finfo->size = IVAL(p,0); p += 8; + finfo->size = IVAL_TO_SMB_OFF_T(p,0); p += 8; p += 8; /* alloc size */ finfo->mode = CVAL(p,0); p += 4; namelen = IVAL(p,0); p += 4; @@ -322,7 +322,7 @@ static int interpret_short_filename(struct cli_state *cli, char *p,file_info *fi /* this date is converted to GMT by make_unix_date */ finfo->ctime = make_unix_date(p+22); finfo->mtime = finfo->atime = finfo->ctime; - finfo->size = IVAL(p,26); + finfo->size = IVAL_TO_SMB_OFF_T(p,26); clistr_pull(cli, finfo->name, p+30, sizeof(finfo->name), 12, STR_ASCII); if (strcmp(finfo->name, "..") && strcmp(finfo->name, ".")) fstrcpy(finfo->short_name,finfo->name); |