]> granicus.if.org Git - sudo/commitdiff
Fix expansion of %h in #include names. Fixes bugzilla 363
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 18 Jul 2009 13:55:37 +0000 (13:55 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 18 Jul 2009 13:55:37 +0000 (13:55 +0000)
toke.c
toke.l

diff --git a/toke.c b/toke.c
index 81d2857f07cfe6de5e6fb3e6b07d336395ac54f9..c9a3c1bf6aa8700ad84de44e87ede4ce17d36665 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -3592,6 +3592,7 @@ parse_include(base)
                memcpy(pp, user_shost, shost_len);
                pp += shost_len;
                cp += 2;
+               continue;
            }
            *pp++ = *cp++;
        }
diff --git a/toke.l b/toke.l
index c123ce9275d05b15422dde51a9847e3da1193bcf..e7023e7e295ebfff2ace0fad2603ed819e46fbf3 100644 (file)
--- a/toke.l
+++ b/toke.l
@@ -971,6 +971,7 @@ parse_include(base)
                memcpy(pp, user_shost, shost_len);
                pp += shost_len;
                cp += 2;
+               continue;
            }
            *pp++ = *cp++;
        }