Ignore:
Timestamp:
Sep 30, 2008, 7:14:08 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.32

Location:
branches/samba-3.0/source
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/VERSION

    r140 r158  
    2626SAMBA_VERSION_MAJOR=3
    2727SAMBA_VERSION_MINOR=0
    28 SAMBA_VERSION_RELEASE=31
     28SAMBA_VERSION_RELEASE=32
    2929
    3030########################################################
  • branches/samba-3.0/source/dynconfig.c

    r13 r158  
    5959{
    6060        static pstring buffer = "";
    61 #if 1
    6261        if (!*buffer)
    6362        {
    6463                snprintf(buffer, 260, "%s/samba/log", getenv("ETC"));
    6564        }
    66 #endif
    6765        return buffer;
    6866}
  • branches/samba-3.0/source/include/version.h

    r140 r158  
    22#define SAMBA_VERSION_MAJOR 3
    33#define SAMBA_VERSION_MINOR 0
    4 #define SAMBA_VERSION_RELEASE 31
    5 #define SAMBA_VERSION_OFFICIAL_STRING "3.0.31"
     4#define SAMBA_VERSION_RELEASE 32
     5#define SAMBA_VERSION_OFFICIAL_STRING "3.0.32"
    66#define SAMBA_VERSION_STRING samba_version_string()
  • branches/samba-3.0/source/lib/interface.c

    r22 r158  
    302302
    303303/****************************************************************************
     304  how many non-loopback interfaces do we have
     305  **************************************************************************/
     306int iface_count_nl(void)
     307{
     308        int ret = 0;
     309        struct interface *i;
     310
     311        for (i=local_interfaces;i;i=i->next) {
     312                if (ip_equal(i->ip, loopback_ip)) {
     313                        continue;
     314                }
     315                ret++;
     316        }
     317        return ret;
     318}
     319
     320/****************************************************************************
    304321  return the Nth interface
    305322  **************************************************************************/
  • branches/samba-3.0/source/nmbd/nmbd.c

    r134 r158  
    249249                BlockSignals(false, SIGTERM);
    250250
    251                 while (iface_count() == 0 && !got_sig_term) {
     251                while (iface_count_nl() == 0 && !got_sig_term) {
    252252                        sleep(5);
    253253                        load_interfaces();
  • branches/samba-3.0/source/nmbd/nmbd_subnetdb.c

    r134 r158  
    187187  try_interfaces_again:
    188188
    189         if (iface_count() == 0) {
    190                 DEBUG(0,("create_subnets: No local interfaces !\n"));
     189        if (iface_count_nl() == 0) {
     190                DEBUG(0,("create_subnets: No non-loopback local interfaces !\n"));
    191191                DEBUG(0,("create_subnets: Waiting for an interface to appear ...\n"));
    192192        }
    193193
    194         while (iface_count() == 0) {
     194        while (iface_count_nl() == 0) {
    195195                void (*saved_handler)(int);
    196196
  • branches/samba-3.0/source/nsswitch/wb_common.c

    r71 r158  
    183183       
    184184        if (lstat(dir, &st) == -1) {
     185                errno = ENOENT;
    185186                return -1;
    186187        }
     
    188189        if (!S_ISDIR(st.st_mode) ||
    189190            (st.st_uid != 0 && st.st_uid != geteuid())) {
     191                errno = ENOENT;
    190192                return -1;
    191193        }
     
    211213
    212214        if (lstat(path, &st) == -1) {
     215                errno = ENOENT;
    213216                return -1;
    214217        }
     
    218221        if (!S_ISSOCK(st.st_mode) ||
    219222            (st.st_uid != 0 && st.st_uid != geteuid())) {
     223                errno = ENOENT;
    220224                return -1;
    221225        }
     
    364368       
    365369        if (winbind_open_pipe_sock(recursing, need_priv) == -1) {
     370                errno = ENOENT;
    366371                return -1;
    367372        }
     
    571576        if (write_sock(request, sizeof(*request),
    572577                       request->flags & WBFLAG_RECURSE, need_priv) == -1) {
     578                /* Set ENOENT for consistency.  Required by some apps */
     579                errno = ENOENT;
     580               
    573581                return NSS_STATUS_UNAVAIL;
    574582        }
     
    577585            (write_sock(request->extra_data.data, request->extra_len,
    578586                        request->flags & WBFLAG_RECURSE, need_priv) == -1)) {
     587                /* Set ENOENT for consistency.  Required by some apps */
     588                errno = ENOENT;
     589
    579590                return NSS_STATUS_UNAVAIL;
    580591        }
     
    600611        /* Wait for reply */
    601612        if (read_reply(response) == -1) {
     613                /* Set ENOENT for consistency.  Required by some apps */
     614                errno = ENOENT;
     615
    602616                return NSS_STATUS_UNAVAIL;
    603617        }
  • branches/samba-3.0/source/nsswitch/winbindd.c

    r140 r158  
    4747/* Reload configuration */
    4848
    49 static BOOL reload_services_file(void)
     49static BOOL reload_services_file(const char *logfile)
    5050{
    5151        BOOL ret;
     
    6262        reopen_logs();
    6363        ret = lp_load(dyn_CONFIGFILE,False,False,True,True);
     64
     65        /* if this is a child, restore the logfile to the special
     66           name - <domain>, idmap, etc. */
     67        if (logfile && *logfile)
     68                lp_set_logfile(logfile);
    6469
    6570        reopen_logs();
     
    189194        /* Flush various caches */
    190195        flush_caches();
    191         reload_services_file();
     196        reload_services_file((const char *) private_data);
    192197}
    193198
     
    727732
    728733/* check if HUP has been received and reload files */
    729 void winbind_check_sighup(void)
     734void winbind_check_sighup(const char *logfile)
    730735{
    731736        if (do_sighup) {
     
    733738                DEBUG(3, ("got SIGHUP\n"));
    734739
    735                 msg_reload_services(MSG_SMB_CONF_UPDATED, pid_to_procid(0), NULL, 0, NULL);
     740                msg_reload_services(MSG_SMB_CONF_UPDATED, pid_to_procid(0), NULL, 0, logfile);
    736741                do_sighup = False;
    737742        }
     
    910915
    911916        winbind_check_sigterm(true);
    912         winbind_check_sighup();
     917        winbind_check_sighup(NULL);
    913918
    914919        if (do_sigusr2) {
     
    10081013                  COPYRIGHT_STARTUP_MESSAGE) );
    10091014
    1010         if (!reload_services_file()) {
     1015        if (!reload_services_file(NULL)) {
    10111016                DEBUG(0, ("error opening config file\n"));
    10121017                exit(1);
  • branches/samba-3.0/source/nsswitch/winbindd_dual.c

    r140 r158  
    103103};
    104104
     105static void async_request_fail(struct winbindd_async_request *state);
    105106static void async_main_request_sent(void *private_data, BOOL success);
    106107static void async_request_sent(void *private_data, BOOL success);
     
    128129        state->mem_ctx = mem_ctx;
    129130        state->child = child;
     131        state->reply_timeout_event = NULL;
    130132        state->request = request;
    131133        state->response = response;
     
    147149        if (!success) {
    148150                DEBUG(5, ("Could not send async request\n"));
    149 
    150                 state->response->length = sizeof(struct winbindd_response);
    151                 state->response->result = WINBINDD_ERROR;
    152                 state->continuation(state->private_data, False);
     151                async_request_fail(state);
    153152                return;
    154153        }
     
    10251024                /* check for signals */
    10261025                winbind_check_sigterm(false);
    1027                 winbind_check_sighup();
     1026                winbind_check_sighup(override_logfile ? NULL :
     1027                        child->logfilename);
    10281028
    10291029                run_events(winbind_event_context(), 0, NULL, NULL);
  • branches/samba-3.0/source/nsswitch/winbindd_proto.h

    r140 r158  
    1919void request_ok(struct winbindd_cli_state *state);
    2020void request_finished_cont(void *private_data, BOOL success);
    21 void winbind_check_sighup(void);
     21void winbind_check_sighup(const char *logfile);
    2222void winbind_check_sigterm(bool in_parent);
    2323int main(int argc, char **argv, char **envp);
  • branches/samba-3.0/source/printing/printing.c

    r134 r158  
    23982398        if ((vuser = get_valid_user_struct(user->vuid)) != NULL) {
    23992399                fstrcpy(pjob.user, lp_printjob_username(snum));
    2400                 standard_sub_basic(vuser->user.smb_name, vuser->user.domain,
    2401                                    pjob.user, sizeof(pjob.user)-1);
     2400                standard_sub_advanced(sharename, vuser->user.smb_name, path,
     2401                                        vuser->gid, vuser->user.smb_name,
     2402                                        vuser->user.domain, pjob.user,
     2403                                        sizeof(pjob.user) - 1);
    24022404                /* ensure NULL termination */
    24032405                pjob.user[sizeof(pjob.user)-1] = '\0';
  • branches/samba-3.0/source/smbd/sesssetup.c

    r134 r158  
    15111511        }
    15121512
    1513         nt_status = create_local_token(server_info);
    1514         if (!NT_STATUS_IS_OK(nt_status)) {
    1515                 DEBUG(10, ("create_local_token failed: %s\n",
    1516                            nt_errstr(nt_status)));
    1517                 data_blob_free(&nt_resp);
    1518                 data_blob_free(&lm_resp);
    1519                 data_blob_clear_free(&plaintext_password);
    1520                 return ERROR_NT(nt_status_squash(nt_status));
     1513        if (!server_info->ptok) {
     1514                nt_status = create_local_token(server_info);
     1515                if (!NT_STATUS_IS_OK(nt_status)) {
     1516                        DEBUG(10, ("create_local_token failed: %s\n",
     1517                                   nt_errstr(nt_status)));
     1518                        data_blob_free(&nt_resp);
     1519                        data_blob_free(&lm_resp);
     1520                        data_blob_clear_free(&plaintext_password);
     1521                        return ERROR_NT(nt_status_squash(nt_status));
     1522                }
    15211523        }
    15221524
  • branches/samba-3.0/source/utils/net.c

    r140 r158  
    497497        }
    498498
    499         if (opt_user_name && opt_password) {
     499        if (opt_user_name) {
    500500                nt_status = connect_to_ipc(&cli, &server_ip, server_name);
    501501                if (NT_STATUS_IS_OK(nt_status)) {
Note: See TracChangeset for help on using the changeset viewer.