Fix uninitialized variable use caught by valgrind.
authorJeremy Allison <jra@samba.org>
Thu, 28 May 2009 20:33:06 +0000 (13:33 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 28 May 2009 20:33:06 +0000 (13:33 -0700)
Jeremy.

source3/libsmb/clifile.c

index 0703f04c5ff900e6b853d99e7421f55d7c8460e3..62d710ede4c11ec59998929e31847de4a891de4f 100644 (file)
@@ -308,7 +308,7 @@ bool cli_unix_stat(struct cli_state *cli, const char *name, SMB_STRUCT_STAT *sbu
 
        sbuf->st_uid = (uid_t) IVAL(rdata,40);      /* user ID of owner */
        sbuf->st_gid = (gid_t) IVAL(rdata,48);      /* group ID of owner */
-       sbuf->st_mode |= unix_filetype_from_wire(IVAL(rdata, 56));
+       sbuf->st_mode = unix_filetype_from_wire(IVAL(rdata, 56));
 #if defined(HAVE_MAKEDEV)
        {
                uint32 dev_major = IVAL(rdata,60);