The file descriptor argument to cli_getattrE() is a fnum not a fd.
authorTim Potter <tpot@samba.org>
Sat, 21 Feb 2004 11:23:51 +0000 (11:23 +0000)
committerTim Potter <tpot@samba.org>
Sat, 21 Feb 2004 11:23:51 +0000 (11:23 +0000)
(This used to be commit f172b6f1d08b7de040cde4a7d88708e5af29a3a4)

source4/libcli/clifile.c

index 543283452279f2ef0ea039de9194e34e285e5942..d1dd0b4ff2fd7e7099806d0a7644a327dd46fbb5 100644 (file)
@@ -494,7 +494,7 @@ NTSTATUS cli_unlock64(struct cli_tree *tree, int fnum, SMB_OFF_T offset,
 /****************************************************************************
  Do a SMBgetattrE call.
 ****************************************************************************/
-NTSTATUS cli_getattrE(struct cli_tree *tree, int fd,
+NTSTATUS cli_getattrE(struct cli_tree *tree, int fnum,
                      uint16 *attr, size_t *size,
                      time_t *c_time, time_t *a_time, time_t *m_time)
 {              
@@ -502,7 +502,7 @@ NTSTATUS cli_getattrE(struct cli_tree *tree, int fd,
        NTSTATUS status;
 
        parms.getattre.level = RAW_FILEINFO_GETATTRE;
-       parms.getattre.in.fnum = fd;
+       parms.getattre.in.fnum = fnum;
 
        status = smb_raw_fileinfo(tree, NULL, &parms);