summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--src/librandom/autosurf_name.c9
-rw-r--r--src/libstddjb/cspawn.c2
3 files changed, 11 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 0e2deb4..67f124b 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ Changelog for skalibs.
In 2.14.1.0
-----------
+ - Bugfixes.
- New socket_sendnb46_g() and socket_recvnb46_g() macros.
diff --git a/src/librandom/autosurf_name.c b/src/librandom/autosurf_name.c
new file mode 100644
index 0000000..b0641c0
--- /dev/null
+++ b/src/librandom/autosurf_name.c
@@ -0,0 +1,9 @@
+/* ISC license. */
+
+#include <skalibs/random.h>
+#include <skalibs/surf.h>
+
+void autosurf_name (char *s, size_t n)
+{
+ random_name_from(s, n, &autosurf) ;
+}
diff --git a/src/libstddjb/cspawn.c b/src/libstddjb/cspawn.c
index ea0da90..e0c4bcd 100644
--- a/src/libstddjb/cspawn.c
+++ b/src/libstddjb/cspawn.c
@@ -239,7 +239,7 @@ static inline pid_t cspawn_pspawn (char const *prog, char const *const *argv, ch
if (nopath && (setenv("PATH", SKALIBS_DEFAULTPATH, 0) == -1)) { e = errno ; goto erractions ; }
e = posix_spawnp(&pid, prog, n ? &actions : 0, flags ? &attr : 0, (char *const *)argv, (char *const *)envp) ;
if (nopath) unsetenv("PATH") ;
- if (e) goto errattr ;
+ if (e) goto erractions ;
if (n) posix_spawn_file_actions_destroy(&actions) ;
if (flags) posix_spawnattr_destroy(&attr) ;