summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/smbw_stat.c
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/smbwrapper/smbw_stat.c
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/smbwrapper/smbw_stat.c')
-rw-r--r--source3/smbwrapper/smbw_stat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbwrapper/smbw_stat.c b/source3/smbwrapper/smbw_stat.c
index ec920eb176..d9e2aa250c 100644
--- a/source3/smbwrapper/smbw_stat.c
+++ b/source3/smbwrapper/smbw_stat.c
@@ -65,16 +65,16 @@ BOOL smbw_getatr(struct smbw_server *srv, char *path,
{
DEBUG(5,("sending qpathinfo\n"));
- if (cli_qpathinfo(&srv->cli, path, c_time, a_time, m_time,
- size, mode)) return True;
-
- DEBUG(5,("qpathinfo OK\n"));
+ if (!srv->no_pathinfo2 &&
+ cli_qpathinfo2(&srv->cli, path, c_time, a_time, m_time, NULL,
+ size, mode)) return True;
/* if this is NT then don't bother with the getatr */
if (srv->cli.capabilities & CAP_NT_SMBS) return False;
if (cli_getatr(&srv->cli, path, mode, size, m_time)) {
a_time = c_time = m_time;
+ srv->no_pathinfo2 = True;
return True;
}
return False;