summaryrefslogtreecommitdiffstats
path: root/source/smbwrapper
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/smbwrapper
parent6121f7c8c2d63fd12266327a6f2ac9a5e717dccc (diff)
downloadsamba-349469221a84658048790d7567b4fcea43c0b759.tar.gz
samba-349469221a84658048790d7567b4fcea43c0b759.tar.xz
samba-349469221a84658048790d7567b4fcea43c0b759.zip
use 1 second resolution calls if possible
Diffstat (limited to 'source/smbwrapper')
-rw-r--r--source/smbwrapper/smbw.h1
-rw-r--r--source/smbwrapper/smbw_stat.c8
2 files changed, 5 insertions, 4 deletions
diff --git a/source/smbwrapper/smbw.h b/source/smbwrapper/smbw.h
index 43fb14bce07..b0cf2dc2e13 100644
--- a/source/smbwrapper/smbw.h
+++ b/source/smbwrapper/smbw.h
@@ -37,6 +37,7 @@ struct smbw_server {
char *server_name;
char *share_name;
dev_t dev;
+ BOOL no_pathinfo2;
};
struct smbw_filedes {
diff --git a/source/smbwrapper/smbw_stat.c b/source/smbwrapper/smbw_stat.c
index ec920eb1768..d9e2aa250c7 100644
--- a/source/smbwrapper/smbw_stat.c
+++ b/source/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;