diff options
Diffstat (limited to 'lib/rpmlead.c')
-rw-r--r-- | lib/rpmlead.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rpmlead.c b/lib/rpmlead.c index af6a131bc..e675ded6d 100644 --- a/lib/rpmlead.c +++ b/lib/rpmlead.c @@ -32,7 +32,9 @@ int writeLead(int fd, struct rpmlead *lead) l.osnum = htons(l.osnum); l.signature_type = htons(l.signature_type); - write(fd, &l, sizeof(l)); + if (write(fd, &l, sizeof(l)) < 0) { + return 1; + } return 0; } |