Step 2: base tools: devel/binutils

This commit is contained in:
2015-04-26 20:01:25 +00:00
committed by Lionel Sambuc
parent 634d7550c3
commit c847a2cd2d
127 changed files with 3578 additions and 351 deletions

View File

@@ -0,0 +1,20 @@
$NetBSD$
--- binutils/bucomm.c.orig Fri Jun 29 12:59:49 2012
+++ binutils/bucomm.c
@@ -580,7 +580,14 @@ get_file_size (const char * file_name)
file_name, strerror (errno));
}
else if (! S_ISREG (statbuf.st_mode))
- non_fatal (_("Warning: '%s' is not an ordinary file"), file_name);
+ {
+ if (!S_ISCHR(statbuf.st_mode))
+ {
+ non_fatal (_("Warning: '%s' is not an ordinary file"), file_name);
+ return 0;
+ }
+ return statbuf.st_size ? statbuf.st_size : 1;
+ }
else if (statbuf.st_size < 0)
non_fatal (_("Warning: '%s' has negative size, probably it is too large"),
file_name);