0.76: please submit patches for this section with actual code/doc
patches!
+* pam_tally: added an #include (was it really needed?) and made the
+ pam_tally app install (with more pretty printing and a corrected
+ Makefile dependency) motivated by a (red hat diff) courtesy of Harald
+ Welte (Bug 436432 - agmorgan)
* more pam_limits changes (extracted from redhat version) courtesy of
Harald Welte (Bug 436061 - agmorgan)
* configure.in changes to help support non-Linux environments courtesy
$(LIBSHARED): $(LIBOBJD)
$(LD_D) -o $@ $(LIBOBJD)
-$(APPLICATION): $(APPOBJD)
- $(CC) $(CFLAGS) -o $@ $< $(LOADLIBES)
+$(APPLICATION): $(APPOBJD) $(TITLE).c
+ $(CC) $(CFLAGS) -o $@ $(APPOBJD) $(LOADLIBES)
endif
$(LIBSTATIC): $(LIBOBJS)
$(LD) -r -o $@ $(LIBOBJS)
-$(APPLICATION): $(APPOBJS)
- $(CC) $(CFLAGS) -o $@ $< $(LOADLIBES)
+$(APPLICATION): $(APPOBJS) $(TITLE).c
+ $(CC) $(CFLAGS) -o $@ $(APPOBJS) $(LOADLIBES)
endif
install: all
$(INSTALL) -m $(SHLIBMODE) $(LIBSHARED) $(FAKEROOT)$(SECUREDIR)
endif
$(MKDIR) $(FAKEROOT)$(SUPLEMENTED)
-# $(INSTALL) -m $(APPMODE) $(APPLICATION) $(FAKEROOT)$(SUPLEMENTED)
+ $(INSTALL) -m $(APPMODE) $(APPLICATION) $(FAKEROOT)$(SUPLEMENTED)
remove:
rm -f $(FAKEROOT)$(SECUREDIR)/$(TITLE).so
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#include <stdlib.h>
#include <stdarg.h>
#include <syslog.h>
#include <pwd.h>
#ifdef MAIN
vfprintf(stderr,format,args);
+ fprintf(stderr,"\n");
#else
openlog(MODULE_NAME, LOG_CONS|LOG_PID, LOG_AUTH);
vsyslog(err, format, args);