]> andersk Git - openssh.git/blobdiff - openbsd-compat/port-linux.c
- (dtucker) [servconf.c sshd.c] More whitespace sync.
[openssh.git] / openbsd-compat / port-linux.c
index 5dedbdc640658ebe24580e8a72db97d3d307093d..2e7970e691491afc10ba665536d9e5441b3436fd 100644 (file)
@@ -24,6 +24,7 @@
 #include "includes.h"
 
 #include <errno.h>
+#include <stdarg.h>
 #include <string.h>
 
 #ifdef WITH_SELINUX
@@ -35,7 +36,7 @@
 #include <selinux/get_context_list.h>
 
 /* Wrapper around is_selinux_enabled() to log its return value once only */
-static int
+int
 ssh_selinux_enabled(void)
 {
        static int enabled = -1;
@@ -78,6 +79,7 @@ ssh_selinux_getctxbyname(char *pwname)
                case 0:
                        error("%s: Failed to get default SELinux security "
                            "context for %s", __func__, pwname);
+                       break;
                default:
                        fatal("%s: Failed to get default SELinux security "
                            "context for %s (in enforcing mode)",
@@ -114,6 +116,7 @@ ssh_selinux_setup_exec_context(char *pwname)
                case 0:
                        error("%s: Failed to set SELinux execution "
                            "context for %s", __func__, pwname);
+                       break;
                default:
                        fatal("%s: Failed to set SELinux execution context "
                            "for %s (in enforcing mode)", __func__, pwname);
This page took 0.091926 seconds and 4 git commands to generate.