]> andersk Git - openssh.git/commitdiff
- dtucker@cvs.openbsd.org 2006/12/14 10:01:14
authordjm <djm>
Fri, 5 Jan 2007 05:29:02 +0000 (05:29 +0000)
committerdjm <djm>
Fri, 5 Jan 2007 05:29:02 +0000 (05:29 +0000)
     [servconf.c]
     Make "PermitOpen all" first-match within a block to match the way other
     options work.  ok markus@ djm@

ChangeLog
servconf.c

index 4ce7c1bbd1c0f24c1ed5cb56a0dcbdcf4c9142c5..6ec71ec52040b20442ac3fc5b10b525475fea2be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
      [servconf.c]
      Make PermitOpen work with multiple values like the man pages says.
      bz #1267 with details from peter at dmtz.com, with & ok djm@
+   - dtucker@cvs.openbsd.org 2006/12/14 10:01:14
+     [servconf.c]
+     Make "PermitOpen all" first-match within a block to match the way other
+     options work.  ok markus@ djm@
 
 20061205
  - (djm) [auth.c] Fix NULL pointer dereference in fakepw().  Crash would
index 83b63497603dd157b81a736a85f617e1edaccd20..872ff4a87acc58ae180170fedbb93195b252d1c3 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: servconf.c,v 1.166 2006/12/13 08:34:39 dtucker Exp $ */
+/* $OpenBSD: servconf.c,v 1.167 2006/12/14 10:01:14 dtucker Exp $ */
 /*
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  *                    All rights reserved
@@ -1220,14 +1220,14 @@ parse_flag:
                if (!arg || *arg == '\0')
                        fatal("%s line %d: missing PermitOpen specification",
                            filename, linenum);
+               n = options->num_permitted_opens;       /* modified later */
                if (strcmp(arg, "any") == 0) {
-                       if (*activep) {
+                       if (*activep && n == -1) {
                                channel_clear_adm_permitted_opens();
                                options->num_permitted_opens = 0;
                        }
                        break;
                }
-               n = options->num_permitted_opens;       /* modified later */
                if (*activep && n == -1)
                        channel_clear_adm_permitted_opens();
                for (; arg != NULL && *arg != '\0'; arg = strdelim(&cp)) {
This page took 0.070728 seconds and 5 git commands to generate.