mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-26 23:44:35 +02:00
removed some more unwanted code
This commit is contained in:
parent
472992786d
commit
d5eefe3c08
@ -36,15 +36,6 @@
|
|||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
|
|
||||||
/*
|
|
||||||
* We support only client side kerberos on Windows.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef WIN32_FIXME
|
|
||||||
#undef GSSAPI
|
|
||||||
#undef KRB5
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(USE_BSM_AUDIT)
|
#if defined(USE_BSM_AUDIT)
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
9
audit.c
9
audit.c
@ -26,15 +26,6 @@
|
|||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
|
|
||||||
/*
|
|
||||||
* We support only client side kerberos on Windows.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef WIN32_FIXME
|
|
||||||
#undef GSSAPI
|
|
||||||
#undef KRB5
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
11
auth.c
11
auth.c
@ -25,15 +25,6 @@
|
|||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
|
|
||||||
/*
|
|
||||||
* We support only client side kerberos on Windows.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef WIN32_FIXME
|
|
||||||
#undef GSSAPI
|
|
||||||
#undef KRB5
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
@ -179,7 +170,7 @@ allowed_user(struct passwd * pw)
|
|||||||
free(shell);
|
free(shell);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#ifndef WIN32_FIXME
|
#ifndef WIN32_FIXME//R
|
||||||
if (S_ISREG(st.st_mode) == 0 ||
|
if (S_ISREG(st.st_mode) == 0 ||
|
||||||
(st.st_mode & (S_IXOTH|S_IXUSR|S_IXGRP)) == 0) {
|
(st.st_mode & (S_IXOTH|S_IXUSR|S_IXGRP)) == 0) {
|
||||||
logit("User %.100s not allowed because shell %.100s "
|
logit("User %.100s not allowed because shell %.100s "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user