r3247: FILE_ATTRIBUTE_NORMAL is only a null-op for setattr and setattre, not basic_info
authorAndrew Tridgell <tridge@samba.org>
Tue, 26 Oct 2004 07:04:10 +0000 (07:04 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:04:46 +0000 (13:04 -0500)
(This used to be commit 36286e477c9bc7b6e268fffb123b565b6e897a44)

source4/ntvfs/posix/pvfs_setfileinfo.c

index 71a9ce12665304a549fd96617b87e7859090a424..4b00a8ac5d0eccfacf3b5ac9a6dc7d8f49a09e6e 100644 (file)
@@ -90,7 +90,7 @@ NTSTATUS pvfs_setfileinfo(struct ntvfs_module_context *ntvfs,
                if (info->basic_info.in.change_time) {
                        newstats.dos.change_time = info->basic_info.in.change_time;
                }
-               if (info->basic_info.in.attrib != FILE_ATTRIBUTE_NORMAL) {
+               if (info->basic_info.in.attrib != 0) {
                        newstats.dos.attrib = info->basic_info.in.attrib;
                }
                break;