s3:vfs_gpfs:quieten an expectable warning message
authorChristian Ambach <ambi@samba.org>
Fri, 10 Feb 2012 17:15:56 +0000 (18:15 +0100)
committerChristian Ambach <ambi@samba.org>
Fri, 10 Feb 2012 19:14:12 +0000 (20:14 +0100)
Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Fri Feb 10 20:14:12 CET 2012 on sn-devel-104

source3/modules/vfs_gpfs.c

index d80f5ebfcc77edbcc4b567ccff85563a79605a93..6a9d3d5b8464a3b2034811f01f4a57f769d539bd 100644 (file)
@@ -1224,7 +1224,11 @@ static int vfs_gpfs_ntimes(struct vfs_handle_struct *handle,
 
         ret = SMB_VFS_NEXT_NTIMES(handle, smb_fname, ft);
         if(ret == -1){
-                DEBUG(1,("vfs_gpfs_ntimes: SMB_VFS_NEXT_NTIMES failed\n"));
+               /* don't complain if access was denied */
+               if (errno != EPERM && errno != EACCES) {
+                       DEBUG(1,("vfs_gpfs_ntimes: SMB_VFS_NEXT_NTIMES failed:"
+                                "%s", strerror(errno)));
+               }
                 return -1;
         }