mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 07:44:29 +02:00
- markus@cvs.openbsd.org 2001/02/09 13:38:07
[auth-options.c] reset options if no option is given; from han.holl@prismant.nl
This commit is contained in:
parent
a1ebd89d24
commit
36d7bd00f9
@ -43,6 +43,9 @@
|
|||||||
- markus@cvs.openbsd.org 2001/02/10 12:09:21
|
- markus@cvs.openbsd.org 2001/02/10 12:09:21
|
||||||
[sshconnect2.c]
|
[sshconnect2.c]
|
||||||
remove some lines
|
remove some lines
|
||||||
|
- markus@cvs.openbsd.org 2001/02/09 13:38:07
|
||||||
|
[auth-options.c]
|
||||||
|
reset options if no option is given; from han.holl@prismant.nl
|
||||||
instead of '0' (from the OpenBSD tree)
|
instead of '0' (from the OpenBSD tree)
|
||||||
- (bal) Synced ssh.1 and sshd.8 w/ OpenBSD
|
- (bal) Synced ssh.1 and sshd.8 w/ OpenBSD
|
||||||
|
|
||||||
@ -3828,4 +3831,4 @@
|
|||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.724 2001/02/10 22:19:23 mouring Exp $
|
$Id: ChangeLog,v 1.725 2001/02/10 22:27:19 mouring Exp $
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: auth-options.c,v 1.12 2001/02/03 10:08:36 markus Exp $");
|
RCSID("$OpenBSD: auth-options.c,v 1.13 2001/02/09 13:38:07 markus Exp $");
|
||||||
|
|
||||||
#include "packet.h"
|
#include "packet.h"
|
||||||
#include "xmalloc.h"
|
#include "xmalloc.h"
|
||||||
@ -61,12 +61,13 @@ int
|
|||||||
auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum)
|
auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum)
|
||||||
{
|
{
|
||||||
const char *cp;
|
const char *cp;
|
||||||
if (!opts)
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
/* reset options */
|
/* reset options */
|
||||||
auth_clear_options();
|
auth_clear_options();
|
||||||
|
|
||||||
|
if (!opts)
|
||||||
|
return 1;
|
||||||
|
|
||||||
while (*opts && *opts != ' ' && *opts != '\t') {
|
while (*opts && *opts != ' ' && *opts != '\t') {
|
||||||
cp = "no-port-forwarding";
|
cp = "no-port-forwarding";
|
||||||
if (strncasecmp(opts, cp, strlen(cp)) == 0) {
|
if (strncasecmp(opts, cp, strlen(cp)) == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user