From 61453cd289e5bcf6f0c87ede494fa54e4e282456 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Thu, 18 Aug 2005 11:11:46 +0000 Subject: Relevant BUGIDs: none Purpose of commit: bugfix Commit summary: --------------- Fix creating of lex.yy.c file, fix syntax errors in pam_conv.y --- conf/pam_conv1/Makefile.am | 2 ++ conf/pam_conv1/pam_conv.lex | 2 +- conf/pam_conv1/pam_conv.y | 6 ++++-- 3 files changed, 7 insertions(+), 3 deletions(-) (limited to 'conf') diff --git a/conf/pam_conv1/Makefile.am b/conf/pam_conv1/Makefile.am index 0bf5b892..c16fc0f8 100644 --- a/conf/pam_conv1/Makefile.am +++ b/conf/pam_conv1/Makefile.am @@ -12,5 +12,7 @@ pam_conv1_SOURCES = pam_conv.lex pam_conv.y pam_conv1_LDADD = @LEXLIB@ +pam_conv.c: lex.yy.c + lex.yy.c: pam_conv.lex $(LEX) pam_conv.lex diff --git a/conf/pam_conv1/pam_conv.lex b/conf/pam_conv1/pam_conv.lex index a7df2b06..0df978bb 100644 --- a/conf/pam_conv1/pam_conv.lex +++ b/conf/pam_conv1/pam_conv.lex @@ -9,7 +9,7 @@ * distributed with this file.) */ - const static char lexid[]= + static const char lexid[]= "$Id$\n" "Copyright (c) Andrew G. Morgan 1997 \n"; diff --git a/conf/pam_conv1/pam_conv.y b/conf/pam_conv1/pam_conv.y index f42b634e..dc82e447 100644 --- a/conf/pam_conv1/pam_conv.y +++ b/conf/pam_conv1/pam_conv.y @@ -9,7 +9,7 @@ * distributed with this file.) */ - const static char bisonid[]= + static const char bisonid[]= "$Id$\n" "Copyright (c) Andrew G. Morgan 1997-8 \n"; @@ -17,6 +17,8 @@ #include #include #include +#include +#include int current_line=1; extern char *yytext; @@ -27,7 +29,7 @@ #define PAM_D "./pam.d" #define PAM_D_MODE 0755 #define PAM_D_MAGIC_HEADER \ - "#%PAM-1.0\n" \ + "#%%PAM-1.0\n" \ "#[For version 1.0 syntax, the above header is optional]\n" #define PAM_D_FILE_FMT PAM_D "/%s" -- cgit v1.2.3