Relevant BUGIDs: 436057, 476970

Purpose of commit: cleanup

Commit summary:
---------------
general comment, make and include cleanup.
This commit is contained in:
Andrew G. Morgan 2001-11-11 07:43:54 +00:00
parent 61a4ef2862
commit 8a2221a503
5 changed files with 9 additions and 6 deletions

View File

@ -49,6 +49,8 @@ bug report - outstanding bugs are listed here:
0.76: please submit patches for this section with actual code/doc
patches!
* pam_filter cleanup (including moving the filter directory) Nalin
and Harald Welte (Bugs 436057, 476970 - agmorgan)
* pam_limits can handle negative priority limits now (which can apply
to the superuser too) - base on patch from Nalin. (Bug 476990 -
agmorgan)

View File

@ -18,7 +18,7 @@ include ../../Make.Rules
TITLE=pam_filter
FILTERS=upperLOWER
FILTERSDIR=$(SUPLEMENTED)/pam_filter
FILTERSDIR=$(SECUREDIR)/pam_filter
export FILTERSDIR
CFLAGS += -Iinclude

View File

@ -150,7 +150,7 @@ static int process_args(pam_handle_t *pamh
/* the "ARGS" variable */
#define ARGS_OFFSET 5 /* sizeof("ARGS="); */
#define ARGS_OFFSET 5 /* sizeof('ARGS='); */
#define ARGS_NAME "ARGS="
size += ARGS_OFFSET;
@ -174,7 +174,7 @@ static int process_args(pam_handle_t *pamh
/* the "SERVICE" variable */
#define SERVICE_OFFSET 8 /* sizeof("SERVICE="); */
#define SERVICE_OFFSET 8 /* sizeof('SERVICE='); */
#define SERVICE_NAME "SERVICE="
pam_get_item(pamh, PAM_SERVICE, (const void **)&tmp);
@ -196,7 +196,7 @@ static int process_args(pam_handle_t *pamh
/* the "USER" variable */
#define USER_OFFSET 5 /* sizeof("USER="); */
#define USER_OFFSET 5 /* sizeof('USER='); */
#define USER_NAME "USER="
pam_get_user(pamh, &tmp, NULL);
@ -222,7 +222,7 @@ static int process_args(pam_handle_t *pamh
/* the "USER" variable */
#define TYPE_OFFSET 5 /* sizeof("TYPE="); */
#define TYPE_OFFSET 5 /* sizeof('TYPE='); */
#define TYPE_NAME "TYPE="
size = TYPE_OFFSET+strlen(type);

View File

@ -21,7 +21,7 @@ OBJS = $(TITLE).o
all: $(TITLE)
$(TITLE): $(OBJS)
$(CC) -o $(TITLE) $(OBJS)
$(CC) $(CFLAGS) -o $(TITLE) $(OBJS)
$(STRIP) $(TITLE)
install:

View File

@ -10,6 +10,7 @@
#include <security/_pam_aconf.h>
#include <stdio.h>
#include <stdlib.h>
#include <syslog.h>
#include <sys/time.h>
#include <sys/types.h>