projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
378f8cb
)
add errno setting to stub utmpxname function
author
Rich Felker
<dalias@aerifal.cx>
Thu, 28 Jan 2016 05:38:23 +0000
(
00:38
-0500)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 28 Jan 2016 05:38:23 +0000
(
00:38
-0500)
src/legacy/utmpx.c
patch
|
blob
|
history
diff --git
a/src/legacy/utmpx.c
b/src/legacy/utmpx.c
index 46ca4b8b5729df1f2609995688a090dd242a8d93..e2843c94af41271e482732fa31a4f9e8d6c363d5 100644
(file)
--- a/
src/legacy/utmpx.c
+++ b/
src/legacy/utmpx.c
@@
-1,5
+1,6
@@
#include <utmpx.h>
#include <stddef.h>
+#include <errno.h>
#include "libc.h"
void endutxent(void)
@@
-36,6
+37,7
@@
void updwtmpx(const char *f, const struct utmpx *u)
int __utmpxname(const char *f)
{
+ errno = ENOTSUP;
return -1;
}