In function ‘open’,
inlined from ‘setup_dev’ at pktsetup.c:88,
inlined from ‘main’ at pktsetup.c:343:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make: *** [pktsetup.o] Error 1
make: Leaving directory `/var/tmp/portage/sys-fs/udftools-1.0.0b-r7/work/udftools-1.0.0b3/pktsetup'
make: *** [all-recursive] Error 1
* ERROR: sys-fs/udftools-1.0.0b-r7 failed.
Gcc 4.3.1 whit fortify_source=2
Created attachment 160658 [details, diff]
Fix for O_CREAT bug in udftools
Your work is greatly appreciated. However, could you please start each Summary with a full package atom?
(In reply to comment #2)
> Your work is greatly appreciated. However, could you please start each Summary
> with a full package atom?
Does it really need O_CREAT here? I mean, it's a dev file it's trying to open, right?
agreed ... but even if it werent a device file, opening something as O_RDONLY|O_CREAT doesnt make any sense
Magnus: could you update the patch accordingly please ?
Created attachment 170280 [details, diff]
Something like that?
This only seems to happen because of -DFORTIFY_SOURCE=2, so this shouldn't block our gcc-4.3 tracker.
thanks, committed as 1.0.0b-r9