Fedora 20 Update: nbd-3.7-1.fc20

updates at fedoraproject.org updates at fedoraproject.org
Wed Jan 29 03:03:56 UTC 2014


--------------------------------------------------------------------------------
Fedora Update Notification
FEDORA-2014-1687
2014-01-29 01:58:24
--------------------------------------------------------------------------------

Name        : nbd
Product     : Fedora 20
Version     : 3.7
Release     : 1.fc20
URL         : http://nbd.sourceforge.net
Summary     : Network Block Device user-space tools (TCP version)
Description :
Tools for the Linux Kernel's network block device, allowing you to use
remote block devices over a TCP/IP network.

--------------------------------------------------------------------------------
Update Information:

Release 3.7

====

 * Add README.md to Makefile.am

README files are distributed automatically, but README.md files are not;
so add it explicitly

====

 * Fix typo

the "dir" parameter contains the name of the directory, while the "dirh"
variable is an opendir() handle that'll only be NULL in case of error.
   
By complete accident, this compiled, but it wouldn't actually ever do
anything useful.

====

 * Don't leak resources

Close the authorized file in _all_ cases, not just when authorized.
   
Found by coverity scan.

====

 * Reformat README to markdown

====

 * Make the implementation of size_autodetect follow the documentation

The documentation claimed that size_autodetect could return UINT64_MAX
if size autodetection would fail. In fact, however, it would call err(),
which is for fatal errors.
   
Additionally, the final test (to use lseek SEEK_END) would never be
called, since it was preceded by an if structure which would call return
in one of its branches and err() in the other.

====

 * Remove off_t from what will eventually be a public API
 
Since the size of off_t may vary depending on whether the LFS defines
have been set, it is not a good idea to expose that, as the recently
fixed bug has shown. As long as we use nbdsrv.h internally only this
doesn't matter, but since the long-term goal is to make libnbdsrv a
public library, we'd better avoid such an issue.

We'll still use off_t internally, but that won't be exposed anymore.

====

 * Remove duplicate ISSERVER definition

====

 * Reorder LFS includes so it actually works

====

 * Add missing lfs.h include
 
lfs.h has an influence on sizeof(off_t), which has an influence on the
offsets of the SERVER data type, which makes things fail on 32 bit...
whoops.

====

 * Fix cleanup in simple_test
 
If nbd-server dies during the test for some reason or other, then the
kill call in the cleanup subroutine would fail, causing (due to 'set
-e') the script to abort immediately. As a result, the "rm -rf" of the
tempdir wouldn't happen, which would leave cruft in /tmp.

====

 * Fully initialize hints
 
POSIX 1003.1 says:

In this hints structure every member other than ai_flags, ai_family,
ai_socktype, and ai_protocol shall be set to zero or a null pointer.

which Linux doesn't enforce, but FreeBSD does.

====

 * Fix missing include

Linux automatically includes <netinet/in.h> as a dependency of one of
the other include files, but this is not required by POSIX, and FreeBSD
doesn't do so.

Since we directly use some of the structs from that file,
add the include
--------------------------------------------------------------------------------
ChangeLog:

* Mon Jan 27 2014 Christopher Meng <rpm at cicku.me> - 3.7-1
- Update to 3.7
* Sat Jan  4 2014 Christopher Meng <rpm at cicku.me> - 3.6-1
- Update to 3.6
* Mon Dec  2 2013 Christopher Meng <rpm at cicku.me> - 3.5-1
- Fix incorrect parsing of access control file in nbd-server(CVE-2013-6410).
- Add systemd support for nbd-server(BZ#877518).
- Enable logging to syslog.
--------------------------------------------------------------------------------

This update can be installed with the "yum" update program.  Use 
su -c 'yum update nbd' at the command line.
For more information, refer to "Managing Software with yum",
available at http://docs.fedoraproject.org/yum/.

All packages are signed with the Fedora Project GPG key.  More details on the
GPG keys used by the Fedora Project can be found at
https://fedoraproject.org/keys
--------------------------------------------------------------------------------


More information about the package-announce mailing list