Ignore:
Timestamp:
Jul 11, 2008, 1:13:42 AM (17 years ago)
Author:
Paul Smedley
Message:

Update branch to 3.0.31 release

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

Legend:

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

    r30 r140  
    8585
    8686        if (len1+len2 >= bufsize) {
     87                if (bufsize < (len1+1)) {
     88                        return ret;
     89                }
    8790                len2 = bufsize - (len1+1);
    8891        }
  • branches/samba-3.0/source/lib/system.c

    r124 r140  
    825825                        /* Linux has CAP_MKNOD for DMAPI access. */
    826826                        cap_vals[num_cap_vals++] = CAP_MKNOD;
     827#endif
     828                        break;
     829                case LEASE_CAPABILITY:
     830#ifdef CAP_LEASE
     831                        cap_vals[num_cap_vals++] = CAP_LEASE;
    827832#endif
    828833                        break;
  • branches/samba-3.0/source/lib/time.c

    r44 r140  
    12131213        /* d is now in 100ns units, since jan 1st 1601".
    12141214           Save off the ns fraction. */
    1215        
    1216         ret.tv_nsec = (long) ((d % 100) * 100);
     1215
     1216        /*
     1217         * Take the last seven decimal digits and multiply by 100.
     1218         * to convert from 100ns units to 1ns units.
     1219         */
     1220        ret.tv_nsec = (long) ((d % (1000 * 1000 * 10)) * 100);
    12171221
    12181222        /* Convert to seconds */
  • branches/samba-3.0/source/lib/util_str.c

    r134 r140  
    23092309        out_cnt = 0;
    23102310        len = data.length;
    2311         output_len = data.length * 2;
     2311        output_len = data.length * 2 + 4; /* Account for closing bytes. 4 is
     2312                                           * random but should be enough for
     2313                                           * the = and \0 */
    23122314        result = (char *)SMB_MALLOC(output_len); /* get us plenty of space */
    23132315
Note: See TracChangeset for help on using the changeset viewer.