summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/check_utility_compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/check_utility_compat.c')
-rw-r--r--lib/libc/gen/check_utility_compat.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libc/gen/check_utility_compat.c b/lib/libc/gen/check_utility_compat.c
index 0ccdec1..2a0db43 100644
--- a/lib/libc/gen/check_utility_compat.c
+++ b/lib/libc/gen/check_utility_compat.c
@@ -30,15 +30,12 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-/*
- * I din't use "namespace.h" here because none of the relevant utilities
- * are threaded, so I'm not concerned about cancellation points or other
- * niceties.
- */
+#include "namespace.h"
#include <limits.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include "un-namespace.h"
#ifndef LINE_MAX
#define LINE_MAX _POSIX2_LINE_MAX
@@ -55,7 +52,7 @@ check_utility_compat(const char *utility)
int len;
if ((p = getenv(_ENV_UTIL_COMPAT)) != NULL) {
- strlcpy(buf, p, sizeof buf);
+ _strlcpy(buf, p, sizeof buf);
} else {
if ((len = readlink(_PATH_UTIL_COMPAT, buf, sizeof buf)) < 0)
return 0;
OpenPOWER on IntegriCloud