Changeset 314

Show
Ignore:
Timestamp:
07/25/06 21:29:54 (2 years ago)
Author:
bonbons
Message:

Add IPv6 support to the scripts
Segfault in cowcp for -h

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0.4/configure.ac

    r143 r314  
    1919# Generic configuration 
    2020AC_PREREQ(2.59) 
    21 AC_INIT(vserver-utils, 1.0.3.99, hollow@gentoo.org) 
     21AC_INIT(vserver-utils, 1.0.4_pre, hollow@gentoo.org) 
    2222AC_CONFIG_HEADER([config.h]) 
    2323AC_GNU_SOURCE 
  • branches/1.0.4/etc/examples/context.conf

    r209 r314  
    6060#VX_FLAGS=( "[~]<flag>" "[~]<flag>" ... ) 
    6161 
    62 # Network address configuration 
     62# Network IPv4 address configuration 
    6363#NX_ADDR=( "192.168.1.123/24" ) 
     64 
     65# Network IPv6 address configuration 
     66#NX_ADDR6=( "::1/128" ) 
     67 
     68# Path to guest's root 
     69#VDIR=/vservers/guest 
     70 
  • branches/1.0.4/scripts/lib/vps.sh

    r208 r314  
    133133                setup) 
    134134                        for i in ${NX_ADDR[@]}; do 
    135                                 ${_VNCONTEXT} -A -n ${VX_XID} -a ${i} 
     135                                ${_VNCONTEXT} -A -n ${VX_XID} -4 -a ${i} 
     136                        done 
     137                        for i in ${NX_ADDR6[@]}; do 
     138                                ${_VNCONTEXT} -A -n ${VX_XID} -6 -a ${i} 
    136139                        done 
    137140                        ;; 
  • branches/1.0.4/src/test/cow.c

    r158 r314  
    208208        if (d) { 
    209209                struct dirent *de; 
    210                 while (de = readdir(d)) { 
     210                while ((de = readdir(d))) { 
    211211                        if (strncmp(de->d_name, buf, 4) == 0 && strlen(de->d_name) == 6) { 
    212212                                printf("[W]  Unexpected file '%.5s\\%o' found\n", de->d_name, (uint8_t)de->d_name[5]); 
  • branches/1.0.4/src/tools/cowcp.c

    r210 r314  
    6868               "    -f            Force overwriting existing files\n" 
    6969               "    -r            Process subdirectories recursively\n" 
    70                "\n" 
     70               "\n", 
    7171               NAME); 
    7272        exit(EXIT_SUCCESS);