forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user