]> git.alsa-project.org Git - tinycompress.git/commit
crec: Fix error with opening file using O_CREAT
authorAmmar Zahid Ali Syed <ammar.zhd@googlemail.com>
Mon, 18 Aug 2014 08:41:58 +0000 (09:41 +0100)
committerVinod Koul <vinod.koul@intel.com>
Fri, 17 Oct 2014 09:21:22 +0000 (14:51 +0530)
commit2c13aa95af847ae0a16ac7d7048169ebb2392345
tree07715045d4b3734f8de0d87b507e5884047830b8
parent6aade1b3e54694c021fde8915cffc78feb7e34df
crec: Fix error with opening file using O_CREAT

The code was not compiling when mode was not passed to open()
while using O_CREAT offset. Passed mode to the open() alongwith
O_CREAT to specify the attributes of file and fix compile issue.

Signed-off-by: Ammar Zahid Ali Syed <ammar.zhd@googlemail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
crec.c