diff options
author | marc <devnull@localhost> | 1997-10-17 18:12:09 +0000 |
---|---|---|
committer | marc <devnull@localhost> | 1997-10-17 18:12:09 +0000 |
commit | 99d07c6e204bd025a00bf283e0107622a665742b (patch) | |
tree | 11f96e952a1e67fa575c4e589a635d2d72fad5ec /lib/rpmlead.c | |
parent | deaf96073e4b68a0bb993ff7555711b6b6054124 (diff) | |
download | librpm-tizen-99d07c6e204bd025a00bf283e0107622a665742b.tar.gz librpm-tizen-99d07c6e204bd025a00bf283e0107622a665742b.tar.bz2 librpm-tizen-99d07c6e204bd025a00bf283e0107622a665742b.zip |
Check for write errors
CVS patchset: 1865
CVS date: 1997/10/17 18:12:09
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; } |