Ignore:
Timestamp:
Nov 25, 2016, 8:04:54 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.7

Location:
vendor/current/ctdb/common
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/ctdb/common/rb_tree.c

    r988 r989  
    217217static inline void trbt_set_color(trbt_node_t *node, int color)
    218218{
    219         if ( (node==NULL) && (color==TRBT_BLACK) ) {
     219        if (node == NULL) {
    220220                return;
    221221        }
     
    224224static inline void trbt_set_color_left(trbt_node_t *node, int color)
    225225{
    226         if ( ((node==NULL)||(node->left==NULL)) && (color==TRBT_BLACK) ) {
     226        if (node == NULL || node->left == NULL) {
    227227                return;
    228228        }
     
    231231static inline void trbt_set_color_right(trbt_node_t *node, int color)
    232232{
    233         if ( ((node==NULL)||(node->right==NULL)) && (color==TRBT_BLACK) ) {
     233        if (node == NULL || node->right == NULL) {
    234234                return;
    235235        }
  • vendor/current/ctdb/common/system_linux.c

    r988 r989  
    116116
    117117                /* get the mac address */
    118                 strncpy(if_hwaddr.ifr_name, iface, sizeof(if_hwaddr.ifr_name)-1);
     118                strlcpy(if_hwaddr.ifr_name, iface, sizeof(if_hwaddr.ifr_name));
    119119                ret = ioctl(s, SIOCGIFHWADDR, &if_hwaddr);
    120120                if ( ret < 0 ) {
     
    202202
    203203                DEBUG(DEBUG_DEBUG, (__location__ " Created SOCKET FD:%d for sending arp\n", s));
    204                 strncpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name));
     204                strlcpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name));
    205205                if (ioctl(s, SIOCGIFINDEX, &ifr) < 0) {
    206206                        DEBUG(DEBUG_CRIT,(__location__ " interface '%s' not found\n", iface));
     
    210210
    211211                /* get the mac address */
    212                 strncpy(if_hwaddr.ifr_name, iface, sizeof(if_hwaddr.ifr_name)-1);
     212                strlcpy(if_hwaddr.ifr_name, iface, sizeof(if_hwaddr.ifr_name));
    213213                ret = ioctl(s, SIOCGIFHWADDR, &if_hwaddr);
    214214                if ( ret < 0 ) {
     
    589589        }
    590590
    591         strncpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name)-1);
     591        strlcpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name));
    592592        if (ioctl(s, SIOCGIFINDEX, &ifr) < 0 && errno == ENODEV) {
    593593                DEBUG(DEBUG_CRIT,(__location__ " interface '%s' not found\n", iface));
Note: See TracChangeset for help on using the changeset viewer.