summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1997-06-03 17:14:48 +0000
committerSamba Release Account <samba-bugs@samba.org>1997-06-03 17:14:48 +0000
commit3f067df49514c821eec5e9be132e6bd42c268506 (patch)
treec9a3932bd4fc40136c51b735573a3dba0fdf7f85 /source3
parent9276c29e643c989edeef3b5572acc328acf97fdc (diff)
downloadsamba-3f067df49514c821eec5e9be132e6bd42c268506.tar.gz
samba-3f067df49514c821eec5e9be132e6bd42c268506.tar.bz2
samba-3f067df49514c821eec5e9be132e6bd42c268506.zip
includes.h: Added USE_SETSID for SGI.
nameelect.c: Added debug 0 comments so you know when you have become a master/domain master. nameservreply.c:Stopped SELF names from being remotely released. This still needs work. nmbsync.c: Added debug 0 comments so you know when a sync is being done. Jeremy jallison@whistle.com (This used to be commit b40d3bede60c8e040ee30c72d605a4950e1a8c8b)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/includes.h2
-rw-r--r--source3/nameelect.c6
-rw-r--r--source3/nameservreply.c4
-rw-r--r--source3/nmbsync.c2
4 files changed, 10 insertions, 4 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 265e838be0..7403fc4b64 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -341,6 +341,7 @@ char *getwd(char *);
#define STATFS4
#define USE_WAITPID
#define USE_DIRECT
+#define USE_SETSID
#endif
#ifdef SGI5
@@ -358,6 +359,7 @@ char *getwd(char *);
#define SIGNAL_CAST (void (*)())
#define USE_STATVFS
#define USE_WAITPID
+#define USE_SETSID
#endif
diff --git a/source3/nameelect.c b/source3/nameelect.c
index 752e27fb07..258ee98931 100644
--- a/source3/nameelect.c
+++ b/source3/nameelect.c
@@ -402,6 +402,10 @@ on subnet %s\n", work->work_group, inet_ntoa(d->bcast_ip)));
/* Reset the announce master timer so that we do an announce as soon as possible
now we are a master. */
reset_announce_timer();
+
+ DEBUG(0,("Samba is now a local master browser for workgroup %s on subnet %s\n",
+ work->work_group, inet_ntoa(d->bcast_ip)));
+
break;
}
@@ -492,7 +496,7 @@ void become_domain_master(struct subnet_record *d, struct work_record *work)
add_server_entry(d,work,myname,work->ServerType,0,
lp_serverstring(),True);
- DEBUG(4,("Samba is now a domain master browser for workgroup %s on subnet %s\n",
+ DEBUG(0,("Samba is now a domain master browser for workgroup %s on subnet %s\n",
work->work_group, inet_ntoa(d->bcast_ip)));
break;
diff --git a/source3/nameservreply.c b/source3/nameservreply.c
index db517dff82..9e46b80303 100644
--- a/source3/nameservreply.c
+++ b/source3/nameservreply.c
@@ -135,10 +135,10 @@ void reply_name_release(struct packet_struct *p)
/* XXXX under what conditions should we reject the removal?? */
/* For now - remove if the names match and the group bit matches. */
- if (n && (NAME_GROUP(n->ip_flgs[0].nb_flags) == NAME_GROUP(nb_flags)))
+ if (n && (n->source != SELF) && (NAME_GROUP(n->ip_flgs[0].nb_flags) == NAME_GROUP(nb_flags)))
{
success = True;
-
+
DEBUG(5, ("reply_name_release: Removing name %s on subnet %s\n",
namestr(&nmb->question.question_name), inet_ntoa(d->bcast_ip)));
remove_name(d,n);
diff --git a/source3/nmbsync.c b/source3/nmbsync.c
index 7c23c64a96..7f5d608998 100644
--- a/source3/nmbsync.c
+++ b/source3/nmbsync.c
@@ -156,7 +156,7 @@ void sync_browse_lists(struct subnet_record *d, struct work_record *work,
got_pass = True;
- DEBUG(4,("sync browse lists with %s for %s %s\n",
+ DEBUG(0,("sync_browse_lists: Sync browse lists with %s for %s %s\n",
work->work_group, name, inet_ntoa(ip)));
strcpy(workgroup,work->work_group);