summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-07-25 19:12:28 +0200
committerVolker Lendecke <vl@samba.org>2010-07-25 20:45:47 +0200
commitb04eba165e45bafbe813f93b9e133dc489d2fe2e (patch)
treedee33717727b3becafcd65998f132b8c038a62f6 /source3
parent1528a4ffbe40fe63329e67370f13c0ef6b117b81 (diff)
downloadsamba-b04eba165e45bafbe813f93b9e133dc489d2fe2e.tar.gz
samba-b04eba165e45bafbe813f93b9e133dc489d2fe2e.tar.bz2
samba-b04eba165e45bafbe813f93b9e133dc489d2fe2e.zip
s3: Fix cli_posix_stat
nlink seems to be defined as 8 bytes, not 4 Jeremy, please check!
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/clifile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index 6e7a74f8d5..de2d18552b 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -778,7 +778,7 @@ static void cli_posix_stat_done(struct tevent_req *subreq)
NTSTATUS status;
status = cli_trans_recv(subreq, state, NULL, 0, NULL, NULL, 0, NULL,
- &state->data, 96, &state->num_data);
+ &state->data, 100, &state->num_data);
TALLOC_FREE(subreq);
if (!NT_STATUS_IS_OK(status)) {
tevent_req_nterror(req, status);
@@ -834,7 +834,7 @@ struct tevent_req *cli_posix_stat_send(TALLOC_CTX *mem_ctx,
2, /* max returned param. */
NULL, /* data. */
0, /* num data. */
- 96); /* max returned data. */
+ 100); /* max returned data. */
if (tevent_req_nomem(subreq, req)) {
return tevent_req_post(req, ev);
@@ -853,7 +853,7 @@ NTSTATUS cli_posix_stat_recv(struct tevent_req *req,
return status;
}
- if (state->num_data != 96) {
+ if (state->num_data != 100) {
return NT_STATUS_DATA_ERROR;
}
@@ -881,7 +881,7 @@ NTSTATUS cli_posix_stat_recv(struct tevent_req *req,
#endif
sbuf->st_ex_ino = (SMB_INO_T)IVAL2_TO_SMB_BIG_UINT(state->data,76); /* inode */
sbuf->st_ex_mode |= wire_perms_to_unix(IVAL(state->data,84)); /* protection */
- sbuf->st_ex_nlink = IVAL(state->data,92); /* number of hard links */
+ sbuf->st_ex_nlink = BIG_UINT(state->data,92); /* number of hard links */
return NT_STATUS_OK;
}