Blame SOURCES/0006-fwup_set_up_update-don-t-lseek-on-our-error-path.patch

453bef
From 0b8ddf8fa6d8e2c86b5f3f1f16d87bcd0a921eae Mon Sep 17 00:00:00 2001
453bef
From: Peter Jones <pjones@redhat.com>
453bef
Date: Tue, 28 Mar 2017 13:21:44 -0400
453bef
Subject: [PATCH 06/11] fwup_set_up_update(): don't lseek() on our error path.
453bef
453bef
We were doing this as a courtesy to the caller, but all checkers will (I
453bef
guess rightly) complain that we're not handling lseek()'s error case.
453bef
Since there's no obvious way *to* handle the error case, may as well
453bef
not.
453bef
453bef
Signed-off-by: Peter Jones <pjones@redhat.com>
453bef
---
453bef
 linux/libfwup.c | 1 -
453bef
 1 file changed, 1 deletion(-)
453bef
453bef
diff --git a/linux/libfwup.c b/linux/libfwup.c
453bef
index bdb8708..d82700f 100644
453bef
--- a/linux/libfwup.c
453bef
+++ b/linux/libfwup.c
453bef
@@ -1373,7 +1373,6 @@ fwup_set_up_update(fwup_resource *re,
453bef
 		goto out;
453bef
 out:
453bef
 	error = errno;
453bef
-	lseek(infd, offset, SEEK_SET);
453bef
 	if (path)
453bef
 		free(path);
453bef
 	if (fin)
453bef
-- 
453bef
2.12.2
453bef