diff options
author | H.J. Lu <hjl@lucon.org> | 2009-06-27 17:19:02 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2009-06-27 17:19:02 +0000 |
commit | ae371689a784ec78f75061e918c5719c6ba0f0a9 (patch) | |
tree | 453c52e90e2a9b13a0098f6bd4ef8d013fa73014 /binutils/bucomm.c | |
parent | b23a571b57078faa996fdbc88ab6dd2d69b28135 (diff) | |
download | binutils-redhat-ae371689a784ec78f75061e918c5719c6ba0f0a9.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/bucomm.c b/binutils/bucomm.c index 9bbdafb906..c6786790a7 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. */ |