summaryrefslogtreecommitdiffstats
path: root/lib/libpam/modules
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2016-03-11 11:38:31 +0000
committerdes <des@FreeBSD.org>2016-03-11 11:38:31 +0000
commite7840322090ad3f571294048641dfa7c0602d7b0 (patch)
treef157f0cbb4de751afbdfcea8fc9535ee0c4bde08 /lib/libpam/modules
parent888ca89bc6c26e54b31a84cb42509792a76a5ae1 (diff)
downloadFreeBSD-src-e7840322090ad3f571294048641dfa7c0602d7b0.zip
FreeBSD-src-e7840322090ad3f571294048641dfa7c0602d7b0.tar.gz
Define __bounded__ to fix the gcc build. While there, raise WARNS.
Diffstat (limited to 'lib/libpam/modules')
-rw-r--r--lib/libpam/modules/pam_ssh/Makefile1
-rw-r--r--lib/libpam/modules/pam_ssh/pam_ssh.c5
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/libpam/modules/pam_ssh/Makefile b/lib/libpam/modules/pam_ssh/Makefile
index af44d6e..a2dabc5 100644
--- a/lib/libpam/modules/pam_ssh/Makefile
+++ b/lib/libpam/modules/pam_ssh/Makefile
@@ -7,7 +7,6 @@ LIB= pam_ssh
MAN= pam_ssh.8
SRCS= pam_ssh.c
-WARNS?= 3
CFLAGS+= -I${SSHDIR} -include ssh_namespace.h
SRCS+= ssh_namespace.h
diff --git a/lib/libpam/modules/pam_ssh/pam_ssh.c b/lib/libpam/modules/pam_ssh/pam_ssh.c
index 8fc68fd..f95c737 100644
--- a/lib/libpam/modules/pam_ssh/pam_ssh.c
+++ b/lib/libpam/modules/pam_ssh/pam_ssh.c
@@ -57,6 +57,7 @@ __FBSDID("$FreeBSD$");
#include <openssl/evp.h>
+#define __bounded__(x, y, z)
#include "key.h"
#include "buffer.h"
#include "authfd.h"
@@ -84,7 +85,9 @@ static const char *pam_ssh_keyfiles[] = {
};
static const char *pam_ssh_agent = "/usr/bin/ssh-agent";
-static char *const pam_ssh_agent_argv[] = { "ssh_agent", "-s", NULL };
+static char str_ssh_agent[] = "ssh-agent";
+static char str_dash_s[] = "-s";
+static char *const pam_ssh_agent_argv[] = { str_ssh_agent, str_dash_s, NULL };
static char *const pam_ssh_agent_envp[] = { NULL };
/*
OpenPOWER on IntegriCloud