OSDN Git Service
(root)
/
android-x86
/
external-exfat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54cc312
)
Fix exfat_generic_pwrite().
author
relan
<relan@users.noreply.github.com>
Tue, 25 Dec 2012 16:55:13 +0000
(16:55 +0000)
committer
relan
<relan@users.noreply.github.com>
Mon, 24 Aug 2015 05:26:15 +0000
(08:26 +0300)
It should return -1 on error, not -errno.
libexfat/io.c
patch
|
blob
|
history
diff --git
a/libexfat/io.c
b/libexfat/io.c
index
577238b
..
32c144c
100644
(file)
--- a/
libexfat/io.c
+++ b/
libexfat/io.c
@@
-345,11
+345,8
@@
ssize_t exfat_generic_pwrite(struct exfat* ef, struct exfat_node* node,
off_t lsize, loffset, remainder;
if (offset + size > node->size)
- {
- int rc = exfat_truncate(ef, node, offset + size);
- if (rc != 0)
- return rc;
- }
+ if (exfat_truncate(ef, node, offset + size) != 0)
+ return -1;
if (size == 0)
return 0;