kevinboone / solunar2

A command-line utility for Linux, for display sunrise/set and similar information
GNU General Public License v3.0
19 stars 4 forks source link

Update kpath.c #3

Closed po4y closed 3 years ago

po4y commented 3 years ago

Error encountered during compilation: error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments

Explanation: Linux and *BSD mandate a third argument to open() when specifying O_CREAT or O_TMPFILE as a file creation flag. This third argument specifies the file access mode, in this case user read & write.

kevinboone commented 3 years ago

Thanks. Not sure why I didn't spot that :/