s3:vfs:gpfs: fix logic when gpfs:winattr is false (the default!)
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 20 Nov 2009 09:39:57 +0000 (10:39 +0100)
committerKarolin Seeger <kseeger@samba.org>
Sat, 5 Mar 2011 13:34:54 +0000 (14:34 +0100)
commit2f810e81944f0eebfb30a64523971c1f0ec29633
treebe54a4e647b0c9e833df67d1487ca460bc942ae9
parent505056084568429cc32f69099f1d478430c487ff
s3:vfs:gpfs: fix logic when gpfs:winattr is false (the default!)

On my autocluster setup, it's not set.  Maybe it should be?  Otherwise
smbclient and some Windows client programs will get errors like:

        # smbclient //localhost/data -Uadministrator%XXX
        Domain=[VSOFS1] OS=[Unix] Server=[Samba 3.4.2-ctdb-10]
        smb: \> put /etc/resolv.conf resolv.conf
        NT_STATUS_ACCESS_DENIED closing remote file \resolv.conf
        smb: \>

Caused by attempting to update the time on close.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 385d925f7e0fedca7d480e4f25d89e3194433b88)

Fix bug #7498 (robocopy fails to a GPFS share when setting the date).
(cherry picked from commit fd6af89cb86c7ffb99ba4de986d932ec58182c81)
source3/modules/vfs_gpfs.c