Re: [ccache] [PATCH 2/2] Fix Segmentation fault error when gcc -o /dev/null

2019-01-23 Thread Robert Yang via ccache
On 1/23/19 11:23 PM, Joel Rosdahl wrote: On Tue, 22 Jan 2019 at 10:36, Robert Yang via ccache wrote: Fixed: $ export CCACHE_DEBUG=1 $ ccache gcc -c hello.c -o /dev/null Segmentation fault (core dumped) This is because failed to open /dev/null.foo (Permission denied), check file stream befor

Re: [ccache] [PATCH 2/2] Fix Segmentation fault error when gcc -o /dev/null

2019-01-23 Thread Joel Rosdahl via ccache
On Tue, 22 Jan 2019 at 10:36, Robert Yang via ccache wrote: > Fixed: > $ export CCACHE_DEBUG=1 > $ ccache gcc -c hello.c -o /dev/null > > Segmentation fault (core dumped) > > This is because failed to open /dev/null.foo (Permission denied), check file > stream before write to it can fix the proble

[ccache] [PATCH 2/2] Fix Segmentation fault error when gcc -o /dev/null

2019-01-22 Thread Robert Yang via ccache
Fixed: $ export CCACHE_DEBUG=1 $ ccache gcc -c hello.c -o /dev/null Segmentation fault (core dumped) This is because failed to open /dev/null.foo (Permission denied), check file stream before write to it can fix the problem. Signed-off-by: Robert Yang --- src/ccache.c | 15 --- src