[Samba] Re: Dangling MS Access DB Lock Files *.ldb
Dragan Krnic
dkrnic at lycos.com
Wed Oct 12 15:01:01 GMT 2005
> Where is this patch, I would like to update my server to 3.0.20a,
> but if there are some problem with Access DB Lock Files, I prefer
> to patche samba before compiling.
You can find the patches for 3.0.20 and 3.0.20a in Jeremy's first
answer to my question, but for your convenience here they are:
For 3.0.20
--- smbd/open.c 2005-07-28 06:19:42.000000000 -0700
+++ smbd/open.c.new 2005-10-10 09:32:25.000000000 -0700
@@ -1585,13 +1585,6 @@
fsp_open = open_file(fsp,conn,fname,psbuf,flags|flags2,unx_mode,access_mask);
- if (!fsp_open && (flags == O_RDWR) && (errno != ENOENT)) {
- if((fsp_open = open_file(fsp,conn,fname,psbuf,
- O_RDONLY,unx_mode,access_mask)) == True) {
- flags = O_RDONLY;
- }
- }
-
if (!fsp_open) {
if(file_existed) {
unlock_share_entry(conn, dev, inode);
For 3.0.20a
--- smbd/open.c 2005-09-29 14:52:40.000000000 -0700
+++ smbd/open.c.new 2005-10-06 21:45:37.000000000 -0700
@@ -1585,22 +1585,6 @@
fsp_open = open_file(fsp,conn,fname,psbuf,flags|flags2,unx_mode,access_mask);
- if (!fsp_open && (flags2 & O_EXCL) && (errno == EEXIST)) {
- /*
- * Two smbd's tried to open exclusively, but only one of them
- * succeeded.
- */
- file_free(fsp);
- return NULL;
- }
-
- if (!fsp_open && (flags == O_RDWR) && (errno != ENOENT)) {
- if((fsp_open = open_file(fsp,conn,fname,psbuf,
- O_RDONLY,unx_mode,access_mask)) == True) {
- flags = O_RDONLY;
- }
- }
-
if (!fsp_open) {
if(file_existed) {
unlock_share_entry(conn, dev, inode);
More information about the samba
mailing list