summaryrefslogtreecommitdiffstats
path: root/tools/ota
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-04-30 06:44:20 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2015-04-30 06:44:20 +0200
commitb2007b70cafac781565ab20c299353cfb0415f71 (patch)
treee2c357667b0e76e6fa5a43c7a7951c872c373e9c /tools/ota
parentam 15a2e46b: am f7466f9f: Stop using adb_strtok, and check argument validity. (diff)
parentam 34d3a3d0: am 34c7731a: Merge "Check all lseek calls succeed." (diff)
downloadandroid_bootable_recovery-b2007b70cafac781565ab20c299353cfb0415f71.tar
android_bootable_recovery-b2007b70cafac781565ab20c299353cfb0415f71.tar.gz
android_bootable_recovery-b2007b70cafac781565ab20c299353cfb0415f71.tar.bz2
android_bootable_recovery-b2007b70cafac781565ab20c299353cfb0415f71.tar.lz
android_bootable_recovery-b2007b70cafac781565ab20c299353cfb0415f71.tar.xz
android_bootable_recovery-b2007b70cafac781565ab20c299353cfb0415f71.tar.zst
android_bootable_recovery-b2007b70cafac781565ab20c299353cfb0415f71.zip
Diffstat (limited to 'tools/ota')
-rw-r--r--tools/ota/check-lost+found.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ota/check-lost+found.c b/tools/ota/check-lost+found.c
index cbf792629..8ce12d39f 100644
--- a/tools/ota/check-lost+found.c
+++ b/tools/ota/check-lost+found.c
@@ -78,7 +78,7 @@ int main(int argc __attribute__((unused)), char **argv __attribute__((unused)))
snprintf(fn, sizeof(fn), "%s/%s", kPartitions[i], "dirty");
fd = open(fn, O_WRONLY|O_CREAT, 0444);
if (fd >= 0) { // Don't sweat it if we can't write the file.
- write(fd, fn, sizeof(fn)); // write, you know, some data
+ TEMP_FAILURE_RETRY(write(fd, fn, sizeof(fn))); // write, you know, some data
close(fd);
unlink(fn);
}