summaryrefslogtreecommitdiff
path: root/conf/pam_conv1
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2005-08-18 11:11:46 +0000
committerThorsten Kukuk <kukuk@thkukuk.de>2005-08-18 11:11:46 +0000
commit61453cd289e5bcf6f0c87ede494fa54e4e282456 (patch)
tree5279f8d11ab9b355b2b240efc0621ed120f377bc /conf/pam_conv1
parenta6c44d77119c67fc06871d6337b95fc5e5f6e385 (diff)
Relevant BUGIDs: none
Purpose of commit: bugfix Commit summary: --------------- Fix creating of lex.yy.c file, fix syntax errors in pam_conv.y
Diffstat (limited to 'conf/pam_conv1')
-rw-r--r--conf/pam_conv1/Makefile.am2
-rw-r--r--conf/pam_conv1/pam_conv.lex2
-rw-r--r--conf/pam_conv1/pam_conv.y6
3 files changed, 7 insertions, 3 deletions
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 <morgan@parc.power.net>\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 <morgan@linux.kernel.org>\n";
@@ -17,6 +17,8 @@
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
+#include <ctype.h>
+#include <sys/stat.h>
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"