v0.6.2
- Fix: on Linux,
w
: output was zero bytes.
The reason is that the parameter os.O_WRONLY was not given to os.OpenFile. On Windows, the file can be output, but on Linux, the file can be created, but no data could not be output.
- Linux版で
w
の出力がゼロバイトになっていた不具合を修正
この不具合は書き込みオープン時に os.O_WRONLY が抜けていたのが原因でした。Windows ではそれでも出力は出来ていたのですが、Linux ではファイルの作成は出来てもデータの出力が出来ない結果となっていました。
- fd, err := os.OpenFile(fname, os.O_EXCL|os.O_CREATE, 0666)
+ fd, err := os.OpenFile(fname, os.O_WRONLY|os.O_EXCL|os.O_CREATE, 0666)