diff options
Diffstat (limited to 'src/filesystem.c')
-rw-r--r-- | src/filesystem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/filesystem.c b/src/filesystem.c index e610d07..7cda4d9 100644 --- a/src/filesystem.c +++ b/src/filesystem.c @@ -272,6 +272,10 @@ lilv_copy_file(const char* src, const char* dst) } } + if (!st && fflush(out)) { + st = errno; + } + if (!st && (ferror(in) || ferror(out))) { st = EBADF; } |