aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-05-06 15:40:42 -0400
committerB. Watson <urchlay@slackware.uk>2025-05-06 15:40:42 -0400
commit5da47051f0c1e03377f77cb2979610594d2629eb (patch)
tree3039537fc7deca955c157ab306bd38eab89621c8
parentca1647767f188f09ab7e3ad9b6260e98f6af9151 (diff)
downloadmarsond-5da47051f0c1e03377f77cb2979610594d2629eb.tar.gz
commentary and README.
-rw-r--r--README4
-rw-r--r--marsond.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/README b/README
index 8126f2d..948ed37 100644
--- a/README
+++ b/README
@@ -40,6 +40,10 @@ Building
The usual "make" and "make install". See the Makefile for variables
you can adjust.
+If you want to build a static binary, you can't do it with glibc,
+due to it needing libnss_compat at runtime (for the getpwnam() and
+getgrnam() calls). You'll have to use something like musl-libc.
+
Running the daemon
------------------
diff --git a/marsond.c b/marsond.c
index 00ac139..e74128e 100644
--- a/marsond.c
+++ b/marsond.c
@@ -270,6 +270,8 @@ int main(int argc, char **argv) {
die("write to /dev/uinput failed: %s", strerror(errno));
}
+ /* I was hoping the return value of this ioctl would be the
+ device number, but it's just 0 for no error. */
if(ioctl(outfd, UI_DEV_CREATE) >= 0) {
debug("created virtual keyboard device");
} else {