The failure is on the third line and debugging it seemed to suggest whatever is being returned from mkstemp is not a valid file descriptor.
If I change the "w" to "w+" it works, and I'm assuming this won't have a knock-on effect on any other architectures as opening in read/write should be okay compared to write only.
When amiga os 68k tries to add to the user-startup file it fails and exits.
The failure is on the third line and debugging it seemed to suggest whatever is being returned from mkstemp is not a valid file descriptor.
If I change the "w" to "w+" it works, and I'm assuming this won't have a knock-on effect on any other architectures as opening in read/write should be okay compared to write only.