From: Todd C. Miller Date: Thu, 28 Mar 2013 17:21:43 +0000 (-0400) Subject: Fix SUDOERS_NO_SEQ X-Git-Tag: SUDO_1_8_7~1^2~129 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=254125769676e81873f0adaaf5b770a2d7bfba54;p=sudo Fix SUDOERS_NO_SEQ --- diff --git a/plugins/sudoers/iolog_path.c b/plugins/sudoers/iolog_path.c index db78d12ef..a5799fdee 100644 --- a/plugins/sudoers/iolog_path.c +++ b/plugins/sudoers/iolog_path.c @@ -189,7 +189,10 @@ expand_iolog_path(const char *prefix, const char *dir, const char *file, switch (pass) { case 0: src = dir; - escapes = io_path_escapes + 1; /* skip "${seq}" */ + escapes = io_path_escapes; +#ifndef SUDOERS_NO_SEQ + escapes++; /* skip "${seq}" */ +#endif break; case 1: /* Trim trailing slashes from dir component. */