diff options
author | Steve Dickson <steved@redhat.com> | 2009-03-23 17:13:01 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-03-23 17:13:01 -0400 |
commit | 3724317e223d46908aac2405bbd73ea2de4f36e5 (patch) | |
tree | 4498459f0dd3f88349c5126792f3715200397eed /utils/gssd/svcgssd.c | |
parent | d62365079f711b25e73522b2af380abc2a7e2788 (diff) | |
download | nfs-utils-3724317e223d46908aac2405bbd73ea2de4f36e5.tar.gz nfs-utils-3724317e223d46908aac2405bbd73ea2de4f36e5.tar.xz nfs-utils-3724317e223d46908aac2405bbd73ea2de4f36e5.zip |
In recent Fedora builds, the '-D _FORTIFY_SOURCE=2' compile
flag has been set. This cause warnings to be generated when
return values from reads/writes (and other calls) are not
checked. The patch address those warnings.
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/gssd/svcgssd.c')
-rw-r--r-- | utils/gssd/svcgssd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/gssd/svcgssd.c b/utils/gssd/svcgssd.c index f97dcd3..6ca0e8d 100644 --- a/utils/gssd/svcgssd.c +++ b/utils/gssd/svcgssd.c @@ -132,7 +132,11 @@ release_parent(void) int status; if (pipefds[1] > 0) { - write(pipefds[1], &status, 1); + if (write(pipefds[1], &status, 1) != 1) { + printerr(1, + "WARN: writing to parent pipe failed: errno %d (%s)\n", + errno, strerror(errno)); + } close(pipefds[1]); pipefds[1] = -1; } |