From ce843e9735742626bb03cbea61041fff5d215930 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 4 Oct 1998 07:52:00 +0000 Subject: add support for dup() and dup2() (This used to be commit c5210cb0fffd406ef1809db8644b299bb661df4d) --- source3/smbwrapper/smbw_stat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/smbwrapper/smbw_stat.c') 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; -- cgit