svn commit: samba r3179 - in branches/SAMBA_4_0/source/ntvfs/posix: .

tridge at samba.org tridge at samba.org
Mon Oct 25 01:56:30 GMT 2004


Author: tridge
Date: 2004-10-25 01:56:29 +0000 (Mon, 25 Oct 2004)
New Revision: 3179

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/ntvfs/posix&rev=3179&nolog=1

Log:
- fixed error return on utime failure

- formatting fix



Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_unlink.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c	2004-10-25 01:56:01 UTC (rev 3178)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c	2004-10-25 01:56:29 UTC (rev 3179)
@@ -64,7 +64,7 @@
 
 		/* Set the date on this file */
 		if (utime(f->name->full_name, &unix_times) == -1) {
-			return NT_STATUS_ACCESS_DENIED;
+			return pvfs_map_errno(pvfs, errno);
 		}
   		break;
 

Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_unlink.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_unlink.c	2004-10-25 01:56:01 UTC (rev 3178)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_unlink.c	2004-10-25 01:56:29 UTC (rev 3179)
@@ -100,7 +100,8 @@
 	}
 
 	for (i=0;i<dir->count;i++) {
-		status = pvfs_unlink_one(pvfs, req, dir->unix_path, dir->names[i], unl->in.attrib);
+		status = pvfs_unlink_one(pvfs, req, dir->unix_path, 
+					 dir->names[i], unl->in.attrib);
 		if (NT_STATUS_IS_OK(status)) {
 			total_deleted++;
 		}



More information about the samba-cvs mailing list