diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-04 07:52:00 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-04 07:52:00 +0000 |
commit | ce843e9735742626bb03cbea61041fff5d215930 (patch) | |
tree | e6cc311712d13236be86cb2239c6df1cd08724e5 /source3/smbwrapper/smbw_stat.c | |
parent | 52e5dbeb9c4a59bf47d75e5b693146951e16ba44 (diff) | |
download | samba-ce843e9735742626bb03cbea61041fff5d215930.tar.gz samba-ce843e9735742626bb03cbea61041fff5d215930.tar.bz2 samba-ce843e9735742626bb03cbea61041fff5d215930.zip |
add support for dup() and dup2()
(This used to be commit c5210cb0fffd406ef1809db8644b299bb661df4d)
Diffstat (limited to 'source3/smbwrapper/smbw_stat.c')
-rw-r--r-- | source3/smbwrapper/smbw_stat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbwrapper/smbw_stat.c b/source3/smbwrapper/smbw_stat.c index 5ca71ee2ef..ae8671c591 100644 --- a/source3/smbwrapper/smbw_stat.c +++ b/source3/smbwrapper/smbw_stat.c @@ -95,16 +95,16 @@ int smbw_fstat(int fd, struct stat *st) return ret; } - if (!cli_qfileinfo(&file->srv->cli, file->cli_fd, + if (!cli_qfileinfo(&file->srv->cli, file->f->cli_fd, &mode, &size, &c_time, &a_time, &m_time) && - !cli_getattrE(&file->srv->cli, file->cli_fd, + !cli_getattrE(&file->srv->cli, file->f->cli_fd, &mode, &size, &c_time, &a_time, &m_time)) { errno = EINVAL; smbw_busy--; return -1; } - smbw_setup_stat(st, file->fname, size, mode); + smbw_setup_stat(st, file->f->fname, size, mode); st->st_atime = a_time; st->st_ctime = c_time; |