svn commit: samba r16930 - in trunk/source/smbd: .

jra at samba.org jra at samba.org
Mon Jul 10 23:54:01 GMT 2006


Author: jra
Date: 2006-07-10 23:54:00 +0000 (Mon, 10 Jul 2006)
New Revision: 16930

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16930

Log:
Turn CIFS POSIX locks on (remove #if defined(DEVELOPER))
clause around them.
Jeremy.

Modified:
   trunk/source/smbd/trans2.c


Changeset:
Modified: trunk/source/smbd/trans2.c
===================================================================
--- trunk/source/smbd/trans2.c	2006-07-10 23:45:39 UTC (rev 16929)
+++ trunk/source/smbd/trans2.c	2006-07-10 23:54:00 UTC (rev 16930)
@@ -2571,11 +2571,10 @@
 					lp_set_posix_pathnames();
 					mangle_change_to_posix();
 				}
-#if defined(DEVELOPER)
+
 				if (client_unix_cap_low & CIFS_UNIX_FCNTL_LOCKS_CAP) {
 					lp_set_posix_cifsx_locktype(POSIX_LOCK);
 				}
-#endif
 				break;
 			}
 		case SMB_FS_QUOTA_INFORMATION:
@@ -3010,7 +3009,7 @@
 			}
 			break;
 		}
-#if defined(DEVELOPER)
+
 		case SMB_QUERY_POSIX_LOCK:
 		{
 			if (fsp == NULL || fsp->fh->fd == -1) {
@@ -3032,7 +3031,6 @@
 				return ERROR_NT(NT_STATUS_NO_MEMORY);
 			}
 		}
-#endif
 		default:
 			break;
 	}
@@ -3563,7 +3561,6 @@
 #endif
 
 
-#if defined(DEVELOPER)
 		case SMB_QUERY_POSIX_LOCK:
 		{
 			NTSTATUS status = NT_STATUS_INVALID_LEVEL;
@@ -3636,7 +3633,6 @@
 			}
 			break;
 		}
-#endif
 
 		default:
 			return ERROR_NT(NT_STATUS_INVALID_LEVEL);
@@ -4511,7 +4507,6 @@
 		}
 #endif
 
-#if defined(DEVELOPER)
 		case SMB_SET_POSIX_LOCK:
 		{
 			SMB_BIG_UINT count;
@@ -4609,7 +4604,6 @@
 			send_trans2_replies(outbuf, bufsize, params, 2, *ppdata, 0);
 			return(-1);
 		}
-#endif
 
 		default:
 			return ERROR_NT(NT_STATUS_INVALID_LEVEL);



More information about the samba-cvs mailing list