summaryrefslogtreecommitdiffstats
path: root/source/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
commit349469221a84658048790d7567b4fcea43c0b759 (patch)
tree9fdb62659e48ef1ec7ca97f2c0d7509b7ee2527e /source/libsmb
parent6121f7c8c2d63fd12266327a6f2ac9a5e717dccc (diff)
downloadsamba-349469221a84658048790d7567b4fcea43c0b759.tar.gz
samba-349469221a84658048790d7567b4fcea43c0b759.tar.xz
samba-349469221a84658048790d7567b4fcea43c0b759.zip
use 1 second resolution calls if possible
Diffstat (limited to 'source/libsmb')
-rw-r--r--source/libsmb/clientgen.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/libsmb/clientgen.c b/source/libsmb/clientgen.c
index 38b4b5ffeb2..657523b3beb 100644
--- a/source/libsmb/clientgen.c
+++ b/source/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);