Package: netcf / 0.1.9-2+deb7u2

Metadata

Package Version Patches format
netcf 0.1.9-2+deb7u2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0003 define NETCF_TRANSACTION for debian ubuntu.patch | (download)

configure.ac | 5 5 + 0 - 0 !
src/drv_debian.c | 2 2 + 0 - 0 !
2 files changed, 7 insertions(+)

 [patch 3/4] define netcf_transaction for debian/ubuntu

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>

0004 add debian xxx.xsl to Makefile.patch | (download)

Makefile.am | 1 1 + 0 - 0 !
Makefile.in | 1 1 + 0 - 0 !
2 files changed, 2 insertions(+)

 [patch 4/4] add debian-{get,put}.xsl to makefile

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>

0005 netcf augeas relax load.patch | (download)

src/dutil_linux.c | 4 3 + 1 - 0 !
1 file changed, 3 insertions(+), 1 deletion(-)

 dutil_linux: don't bail if /augeas//error returned a match
 after aug_load, unless errcode is something other than NETCF_NOERROR.
 Without this, ncftool bails on debian early on.
0006 drv debian ifup paths.patch | (download)

src/drv_debian.c | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 add /sbin to ifup and ifdown paths.
 In debian, /sbin won't be in $PATH.
0007 dont use netcf transaction.patch | (download)

configure.ac | 2 1 + 1 - 0 !
src/drv_debian.c | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

 don't try to use netcf-transaction.  it doesn't support the
 /etc/network/interfaces file.  (It could be made to, but for now punt on
 it)
fix_ipcalc_netmask | (download)

src/xslt_ext.c | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

---
netcf debian memleak.patch | (download)

src/drv_debian.c | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 avoid a memory leak when listing interfaces
 Leak reported via Natanael Copa on IRC when used by libvirt:
 .
 ==623== 5,677,056 bytes in 693 blocks are definitely lost in loss record 3,354 of 3,358
 ==623== at 0x4C1138C: malloc (vg_replace_malloc.c:270)
 ==623== by 0x5B4A9F3: open_memstream (in /lib/libuClibc-0.9.33.2.so)
 ==623== by 0x5B485AF: vasprintf (in /lib/libuClibc-0.9.33.2.so)
 ==623== by 0x10BE7C8B: ???
 ==623== by 0x10BE7EE2: ???
 ==623== by 0x10BE8473: ???
 ==623== by 0x10BE8A53: ???
 ==623== by 0x109BD755: ???
 ==623== by 0x109BE47D: ???
 ==623== by 0x53450EF: virConnectListDefinedInterfaces (in /home/ncopa/aports/main/libvirt/src/libvirt-1.1.1/src/.libs/libvirt.so.0.1001.1)
 .
 Even without symbols, the lone call to vasprintf in drv_debian was
 a pretty blatant leak.
 .
 * src/drv_debian.c (interface_deps): Free path when done with it.