-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add error checks before calling creat(2)
Error checks were made after creat(2) was called resulting in files possibly being created (by e.g. touch) erroneously. This patch makes sure any internal error checks are performed before creat(2) or open(2) is called. This patch also includes some minor cleanup in the raw read service function(s) and removal of unused bit fields. Signed-off-by: Hans Beckerus <hans.beckerus at gmail.com>
- Loading branch information
Hans Beckerus
committed
May 9, 2017
1 parent
4467c9d
commit d622dc1
Showing
2 changed files
with
59 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters