aboutsummaryrefslogtreecommitdiff
path: root/binutils/bucomm.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2009-06-27 17:19:02 +0000
committerH.J. Lu <hjl.tools@gmail.com>2009-06-27 17:19:02 +0000
commit52a476eeda8cf7a753a58991293cae95baa44797 (patch)
tree74e5067886a9b0aaf9e2b60c04933951a0a95492 /binutils/bucomm.c
parent83b89087cf717b455598eee2fb5ddb4d5465a6a0 (diff)
downloadfsf-binutils-gdb-52a476eeda8cf7a753a58991293cae95baa44797.zip
fsf-binutils-gdb-52a476eeda8cf7a753a58991293cae95baa44797.tar.gz
fsf-binutils-gdb-52a476eeda8cf7a753a58991293cae95baa44797.tar.bz2
2009-06-27 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/10321 * bucomm.c (get_file_size): Return -1 on error. * objcopy.c (copy_file): Report empty file.
Diffstat (limited to 'binutils/bucomm.c')
-rw-r--r--binutils/bucomm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/bucomm.c b/binutils/bucomm.c
index 9bbdafb..c678679 100644
--- a/binutils/bucomm.c
+++ b/binutils/bucomm.c
@@ -571,7 +571,7 @@ get_file_size (const char * file_name)
else
return statbuf.st_size;
- return 0;
+ return (off_t) -1;
}
/* Return the filename in a static buffer. */