diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2023-12-18 10:05:38 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-12-18 09:10:08 +0000 |
commit | b6691ab45726a77fc06f5f6fa2c95a22e781ccc9 (patch) | |
tree | 3cc47478681619cd437e2913d9aa91ccdb5a932a /conf | |
parent | e1fb4764cde22dd3e58ee9b6bc6b687ac19eb61f (diff) | |
download | pam-b6691ab45726a77fc06f5f6fa2c95a22e781ccc9.tar.gz pam-b6691ab45726a77fc06f5f6fa2c95a22e781ccc9.tar.bz2 pam-b6691ab45726a77fc06f5f6fa2c95a22e781ccc9.zip |
conv/pam_conv1: use correct line number in output
The line number increments occur before the line is passed to
parsing logic due to NL token through lex. Start counting at 0
get this offset right.
Co-authored-by: Benny Baumann <BenBE@geshi.org>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'conf')
-rw-r--r-- | conf/pam_conv1/pam_conv_y.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/pam_conv1/pam_conv_y.y b/conf/pam_conv1/pam_conv_y.y index 95010b2f..20b91ad1 100644 --- a/conf/pam_conv1/pam_conv_y.y +++ b/conf/pam_conv1/pam_conv_y.y @@ -24,7 +24,7 @@ extern int yylex(void); - unsigned long long current_line=1; + unsigned long long current_line=0; extern char *yytext; /* XXX - later we'll change this to be the specific conf file(s) */ |