diff options
author | Andrew Tridgell <tridge@samba.org> | 1996-08-13 12:35:28 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1996-08-13 12:35:28 +0000 |
commit | f1dc2b93179ace36407bbb25c2c34c78087714bd (patch) | |
tree | d4f2a06ed20feacf9a4d85ceac9004ebb5fe7490 | |
parent | d0ce245acca9ae5797ef9f5c770d1fcd2d7b3373 (diff) | |
download | samba-f1dc2b93179ace36407bbb25c2c34c78087714bd.tar.gz |
minor cleanups
-rw-r--r-- | source/nameannounce.c | 6 | ||||
-rw-r--r-- | source/smbd/smbrun.c | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/source/nameannounce.c b/source/nameannounce.c index e619ef1c4b6..4c1ef78f9ed 100644 --- a/source/nameannounce.c +++ b/source/nameannounce.c @@ -121,7 +121,7 @@ void sync_server(enum state_type state, char *serv_name, char *work_name, struct in_addr ip) { /* with a domain master we can get the whole list (not local only list) */ - BOOL local_only = state != NAME_STATUS_DOM_SRV_CHK; + BOOL local_only = (state != NAME_STATUS_DOM_SRV_CHK); add_browser_entry(serv_name, name_type, work_name, 0, ip, local_only); @@ -473,10 +473,6 @@ void announce_host(void) /**************************************************************************** announce myself as a master to all other primary domain conrollers. - BIG NOTE: this code will remain untested until some kind soul that has access - to a couple of windows NT advanced servers runs this version of nmbd for at - least 15 minutes. - this actually gets done in search_and_sync_workgroups() via the NAME_QUERY_DOM_SRV_CHK command, if there is a response from the name query initiated here. see response_name_query() diff --git a/source/smbd/smbrun.c b/source/smbd/smbrun.c index dcd5379bc1d..d547c796e07 100644 --- a/source/smbd/smbrun.c +++ b/source/smbd/smbrun.c @@ -41,7 +41,7 @@ static void close_fds(void) /* -This is a wrapper around the system call to allow commands to run correctly +This is a wrapper around the system() call to allow commands to run correctly as non root from a program which is switching between root and non-root It takes 3 arguments as uid,gid,command and runs command after |