Commit c3533c4c authored by Nick Clifton's avatar Nick Clifton

Fix a problem in the assembler when checking for overlapping input and output...

Fix a problem in the assembler when checking for overlapping input and output files on non-POSIX compliant systems.

	PR 23153
	* as.c (main): When checking for an output file that is also an
	input file, also check that the inode is not zero.
parent 4ec09950
2018-05-14 Nick Clifton <nickc@redhat.com>
PR 23153
* as.c (main): When checking for an output file that is also an
input file, also check that the inode is not zero.
2018-05-12 Alan Modra <amodra@gmail.com>
* config/tc-score.c (s3_do_macro_bcmp): Don't use fixed size
......
......@@ -1256,7 +1256,7 @@ main (int argc, char ** argv)
if (stat (argv[i], &sib) == 0)
{
if (sib.st_ino == sob.st_ino)
if (sib.st_ino == sob.st_ino && sib.st_ino != 0)
{
/* Don't let as_fatal remove the output file! */
out_file_name = NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment