From ef4475adc4b8da0e3acfe6d70b2afa94a1e500cd Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 30 Jun 2006 08:16:59 +0000 Subject: r16706: for RAW_SFILEINFO_SETATTR attrib == 0 means set it to FILE_ATTRIB_NORMAL and attrib == FILE_ATTRIB_NORMAL means no change... but for RAW_SFILEINFO_BASIC_INFORMATION attrib == 0 means no change metze (This used to be commit e1945feda09a56b6f55bd0f7ab591f3bd069be67) --- source4/ntvfs/posix/pvfs_setfileinfo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/ntvfs/posix') diff --git a/source4/ntvfs/posix/pvfs_setfileinfo.c b/source4/ntvfs/posix/pvfs_setfileinfo.c index 2665b9e5f5..6c7c6dc6f7 100644 --- a/source4/ntvfs/posix/pvfs_setfileinfo.c +++ b/source4/ntvfs/posix/pvfs_setfileinfo.c @@ -493,7 +493,9 @@ NTSTATUS pvfs_setpathinfo(struct ntvfs_module_context *ntvfs, if (!null_time(info->setattr.in.write_time)) { unix_to_nt_time(&newstats.dos.write_time, info->setattr.in.write_time); } - if (info->setattr.in.attrib != FILE_ATTRIBUTE_NORMAL) { + if (info->setattr.in.attrib == 0) { + newstats.dos.attrib = FILE_ATTRIBUTE_NORMAL; + } else if (info->setattr.in.attrib != FILE_ATTRIBUTE_NORMAL) { newstats.dos.attrib = info->setattr.in.attrib; } break; -- cgit