Changeset 457


Ignore:
Timestamp:
Jun 8, 2010, 6:38:55 AM (10 years ago)
Author:
Herwig Bauernfeind
Message:

_divers fix for Ticket #131 and #138

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

Legend:

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

    r392 r457  
    172172{
    173173    UCHAR byte = 0;
     174    int c;
     175#if 0
     176// The following routine crashes on Quadcore CPUs
    174177    CPUUTIL util;
    175     int c;
    176178
    177179    if (hDoscalls == 0) {
     
    201203        }
    202204    }
     205#endif
     206// SC's randomizer
     207
     208    ULONG ulrandom;
     209        ulrandom = random();
     210        for (c = 0; c < sizeof(ulrandom); c++) {
     211                byte ^= ((UCHAR *)&ulrandom)[c];
     212        }
    203213
    204214    return byte;
    205215}
    206 
    207 
    208216
    209217UCHAR randbyte()
  • branches/samba-3.0/source/smbd/vfs.c

    r431 r457  
    890890
    891891#ifdef __OS2__
    892         if (*resolved_name != '/' && *resolved_name != '\\' && (strlen(resolved_name) <= 1 || resolved_name[1] != ':')) {
    893 #else
    894         if (*resolved_name != '/') {
     892        if (*resolved_name != '/' && ( strlen(resolved_name) <=1 || resolved_name[1] != ':') ) {
     893#else   
     894        if (*resolved_name != '/') {
    895895#endif
    896896                DEBUG(0,("reduce_name: realpath doesn't return absolute paths !\n"));
Note: See TracChangeset for help on using the changeset viewer.