diff options
Diffstat (limited to 'binutils/bucomm.c')
-rw-r--r-- | binutils/bucomm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/bucomm.c b/binutils/bucomm.c index fd6f356..5a0b634 100644 --- a/binutils/bucomm.c +++ b/binutils/bucomm.c @@ -598,6 +598,8 @@ get_file_size (const char * file_name) non_fatal (_("Warning: could not locate '%s'. reason: %s"), file_name, strerror (errno)); } + else if (S_ISDIR (statbuf.st_mode)) + non_fatal (_("Warning: '%s' is a directory"), file_name); else if (! S_ISREG (statbuf.st_mode)) non_fatal (_("Warning: '%s' is not an ordinary file"), file_name); else if (statbuf.st_size < 0) |