Ignore:
Timestamp:
Nov 26, 2007, 9:24:27 AM (18 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.27a

Location:
branches/samba-3.0/source/lib
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/lib/charcnv.c

    r102 r105  
    870870size_t push_ascii(void *dest, const char *src, size_t dest_len, int flags)
    871871{
    872     size_t src_len = strlen(src);
    873     pstring tmpbuf;
     872        size_t src_len = strlen(src);
     873        pstring tmpbuf;
     874        size_t ret;
    874875
    875876        /* No longer allow a length of -1 */
     
    886887        src_len++;
    887888
    888     return convert_string(CH_UNIX, CH_DOS, src, src_len, dest, dest_len, True);
     889        ret =convert_string(CH_UNIX, CH_DOS, src, src_len, dest, dest_len, True);
     890        if (ret == (size_t)-1 &&
     891                        (flags & (STR_TERMINATE | STR_TERMINATE_ASCII))
     892                        && dest_len > 0) {
     893                ((char *)dest)[0] = '\0';
     894        }
     895        return ret;
     896
    889897}
    890898
  • branches/samba-3.0/source/lib/replace/replace.h

    r30 r105  
    7878#include <stdlib.h>
    7979#include <stddef.h>
     80#endif
     81
     82#if !defined(HAVE_VOLATILE)
     83#define volatile
    8084#endif
    8185
  • branches/samba-3.0/source/lib/replace/system/wait.h

    r30 r105  
    4545#endif
    4646
     47#if !defined(HAVE_SIG_ATOMIC_T_TYPE)
     48typedef int sig_atomic_t;
    4749#endif
     50
     51#endif
  • branches/samba-3.0/source/lib/util.c

    r62 r105  
    12421242                p++;
    12431243                fstrcpy(my_domname, p);
     1244                return True;
    12441245        }
    12451246
  • branches/samba-3.0/source/lib/util_tdb.c

    r26 r105  
    6969        if (timeout) {
    7070                CatchSignal(SIGALRM, SIGNAL_CAST gotalarm_sig);
     71                tdb_setalarm_sigptr(tdb, &gotalarm);
    7172                alarm(timeout);
    7273        }
     
    7980        if (timeout) {
    8081                alarm(0);
     82                tdb_setalarm_sigptr(tdb, NULL);
    8183                CatchSignal(SIGALRM, SIGNAL_CAST SIG_IGN);
    8284                if (gotalarm) {
  • branches/samba-3.0/source/lib/version.c

    r1 r105  
    2828#else
    2929        static fstring samba_version;
     30        static BOOL init_samba_version;
     31#ifdef SAMBA_VENDOR_PATCH
    3032        fstring tmp_version;
    31         static BOOL init_samba_version;
    3233        size_t remaining;
     34#endif
    3335
    3436        if (init_samba_version)
Note: See TracChangeset for help on using the changeset viewer.