diff options
author | Pixel <pixel@nobis-crew.org> | 2011-02-05 13:43:35 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-02-05 13:43:35 -0800 |
commit | ab16fcf76e616dfa7cac2cb3dd909ba2a8eb2a9f (patch) | |
tree | 5f93ecc452d648bbd84ffeda38ee5a0247e37dcc /libc/src/open.c | |
parent | 8361bc28f9215a07e2275f55561408d1bfca112f (diff) |
Slightly better errno support.
Diffstat (limited to 'libc/src/open.c')
-rw-r--r-- | libc/src/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/src/open.c b/libc/src/open.c index 71a96d1..78d40be 100644 --- a/libc/src/open.c +++ b/libc/src/open.c @@ -12,6 +12,6 @@ int open(const char * path, int flags) { if (r >= 0) return r; - _impure_ptr->_errno = EACCES; + set_errno(EACCES); return -1; } |