summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1997-10-09 18:40:52 +0000
committerJeremy Allison <jra@samba.org>1997-10-09 18:40:52 +0000
commit76247228896d39312ba896fa229076be3271e2e4 (patch)
treeebe05dee60d03eede90a276c481e9e6ff7d06b58
parent7bc4c4c27bf18ce3f632d230dc919ea341b5abb0 (diff)
downloadsamba-76247228896d39312ba896fa229076be3271e2e4.tar.gz
samba-76247228896d39312ba896fa229076be3271e2e4.tar.xz
samba-76247228896d39312ba896fa229076be3271e2e4.zip
local.h: Fix spelling mistake :-).
namedbsubnet.c: Stop registering 1x name unless we can be a local master. reply.c: Remove ERRbaddirectory code. server.c: Remove abort() - use exit_server() instead. trans2.c: Remove ERRbaddirectory code. Jeremy (jallison@whistle.com)
-rw-r--r--source/include/local.h2
-rw-r--r--source/namedbsubnet.c6
-rw-r--r--source/smbd/reply.c4
-rw-r--r--source/smbd/server.c2
-rw-r--r--source/smbd/trans2.c9
5 files changed, 17 insertions, 6 deletions
diff --git a/source/include/local.h b/source/include/local.h
index 22d1b2a08e0..97857727c74 100644
--- a/source/include/local.h
+++ b/source/include/local.h
@@ -159,7 +159,7 @@
/* the directory to sit in when idle */
/* #define IDLE_DIR "/" */
-/* Timout (in seconds) to wait for an oplock breal
+/* Timout (in seconds) to wait for an oplock break
message to return. */
#define OPLOCK_BREAK_TIMEOUT 30
diff --git a/source/namedbsubnet.c b/source/namedbsubnet.c
index 4f0b647996d..c6663d71fd4 100644
--- a/source/namedbsubnet.c
+++ b/source/namedbsubnet.c
@@ -218,7 +218,11 @@ void add_workgroup_to_subnet( struct subnet_record *d, char *group)
int n;
add_my_name_entry(d,group,0x0 ,nb_type|NB_ACTIVE|NB_GROUP);
- add_my_name_entry(d,group,0x1e,nb_type|NB_ACTIVE|NB_GROUP);
+
+ /* Only register the WORKGROUP<0x1e> name if we could be a local master
+ browser. */
+ if(lp_local_master())
+ add_my_name_entry(d,group,0x1e,nb_type|NB_ACTIVE|NB_GROUP);
/* Add all our server names to the workgroup list. We remove any
browser or logon server flags from all but the primary name.
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index 2a3679553c0..baccb762911 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -641,13 +641,15 @@ int reply_chkpth(char *inbuf,char *outbuf)
unix_ERR_code = ERRbadpath;
}
- /* Ugly - NT specific hack - but needed (JRA) */
+#if 0
+ /* Ugly - NT specific hack - maybe not needed ? (JRA) */
if((errno == ENOTDIR) && (Protocol >= PROTOCOL_NT1) &&
(get_remote_arch() == RA_WINNT))
{
unix_ERR_class = ERRDOS;
unix_ERR_code = ERRbaddirectory;
}
+#endif
return(UNIXERROR(ERRDOS,ERRbadpath));
}
diff --git a/source/smbd/server.c b/source/smbd/server.c
index e4d433c06f9..d387b7375bb 100644
--- a/source/smbd/server.c
+++ b/source/smbd/server.c
@@ -2774,7 +2774,7 @@ inode = %x).\n", fsp->name, fnum, dev, inode));
{
DEBUG(0,("oplock_break: global_oplocks_open < 0 (%d). PANIC ERROR\n",
global_oplocks_open));
- abort();
+ exit_server("oplock_break: global_oplocks_open < 0");
}
DEBUG(5,("oplock_break: returning success for fnum = %d, dev = %x, inode = %x. Current \
diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index 7f46604cce9..092a069a6e3 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -608,13 +608,15 @@ static int call_trans2findfirst(char *inbuf, char *outbuf, int bufsize, int cnum
unix_ERR_code = ERRbadpath;
}
- /* Ugly - NT specific hack - but needed (JRA) */
+#if 0
+ /* Ugly - NT specific hack - maybe not needed ? (JRA) */
if((errno == ENOTDIR) && (Protocol >= PROTOCOL_NT1) &&
(get_remote_arch() == RA_WINNT))
{
unix_ERR_class = ERRDOS;
unix_ERR_code = ERRbaddirectory;
}
+#endif
return(ERROR(ERRDOS,ERRbadpath));
}
@@ -651,13 +653,16 @@ static int call_trans2findfirst(char *inbuf, char *outbuf, int bufsize, int cnum
unix_ERR_code = ERRbadpath;
}
- /* Ugly - NT specific hack - but needed (JRA) */
+#if 0
+ /* Ugly - NT specific hack - maybe not needed ? (JRA) */
if((errno == ENOTDIR) && (Protocol >= PROTOCOL_NT1) &&
(get_remote_arch() == RA_WINNT))
{
unix_ERR_class = ERRDOS;
unix_ERR_code = ERRbaddirectory;
}
+#endif
+
return (UNIXERROR(ERRDOS,ERRbadpath));
}
return(ERROR(ERRDOS,ERRbadpath));