summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-08 02:28:21 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-08 02:28:21 +0000
commit4750ce1760a39100f71e74ce8b88a925fef4c42f (patch)
tree208e77a6779b1b34bf8c2926730060f2c03e5941 /source3/libsmb
parentef2e37cf945a3f95d4e7df8b3b915c864d4dc100 (diff)
downloadsamba-4750ce1760a39100f71e74ce8b88a925fef4c42f.tar.gz
samba-4750ce1760a39100f71e74ce8b88a925fef4c42f.tar.bz2
samba-4750ce1760a39100f71e74ce8b88a925fef4c42f.zip
use 1 second resolution calls if possible
(This used to be commit 349469221a84658048790d7567b4fcea43c0b759)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 38b4b5ffeb..657523b3be 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -1557,9 +1557,9 @@ BOOL cli_qpathinfo(struct cli_state *cli, const char *fname,
/****************************************************************************
send a qpathinfo call with the SMB_QUERY_FILE_ALL_INFO info level
****************************************************************************/
-BOOL cli_qpathinfo2(struct cli_state *cli, char *fname,
+BOOL cli_qpathinfo2(struct cli_state *cli, const char *fname,
time_t *c_time, time_t *a_time, time_t *m_time,
- time_t *w_time, uint32 *size)
+ time_t *w_time, size_t *size, uint32 *mode)
{
int data_len = 0;
int param_len = 0;
@@ -1608,6 +1608,9 @@ BOOL cli_qpathinfo2(struct cli_state *cli, char *fname,
if (size) {
*size = IVAL(rdata, 40);
}
+ if (mode) {
+ *mode = IVAL(rdata, 32);
+ }
if (rdata) free(rdata);
if (rparam) free(rparam);