]> git.michaelhowe.org Git - packages/o/openafs.git/commit
aklog: Fix improper use of readlink
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 2 Mar 2013 09:16:10 +0000 (09:16 +0000)
committerStephan Wiesand <stephan.wiesand@desy.de>
Tue, 3 Jun 2014 16:33:11 +0000 (12:33 -0400)
commite56dfc5c2c97e1429924c44acce56bde8486ac8b
tree91859b6adbc9c98c11b99c44b65b17f80e1ea751
parent82f66b96fac2deb8e8afe189d51d1b003f72f111
aklog: Fix improper use of readlink

readlink doesn't NUL terminate its return string, so it is up to
us to do so.

Caught by coverity (#985739)

Reviewed-on: http://gerrit.openafs.org/9347
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit 2fac53522e7ef5b3a376e191bffdc1f6784e6995)

Change-Id: I9d47a6a7cbc86fba3f68f7e47c5d7a0fb924781f
Reviewed-on: http://gerrit.openafs.org/11035
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/aklog/aklog.c