diff options
Diffstat (limited to 'tools/ota/check-lost+found.c')
-rw-r--r-- | tools/ota/check-lost+found.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ota/check-lost+found.c b/tools/ota/check-lost+found.c index cbf79262..8ce12d39 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))) | |||
78 | snprintf(fn, sizeof(fn), "%s/%s", kPartitions[i], "dirty"); | 78 | snprintf(fn, sizeof(fn), "%s/%s", kPartitions[i], "dirty"); |
79 | fd = open(fn, O_WRONLY|O_CREAT, 0444); | 79 | fd = open(fn, O_WRONLY|O_CREAT, 0444); |
80 | if (fd >= 0) { // Don't sweat it if we can't write the file. | 80 | if (fd >= 0) { // Don't sweat it if we can't write the file. |
81 | write(fd, fn, sizeof(fn)); // write, you know, some data | 81 | TEMP_FAILURE_RETRY(write(fd, fn, sizeof(fn))); // write, you know, some data |
82 | close(fd); | 82 | close(fd); |
83 | unlink(fn); | 83 | unlink(fn); |
84 | } | 84 | } |