/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to plugins.d/splashy.c

  • Committer: Teddy Hogeborn
  • Date: 2016-03-19 03:51:23 UTC
  • Revision ID: teddy@recompile.se-20160319035123-53w4dbzdyjef29m1
Server: New tmpfiles.d file for persistent state directory

Provide a tmpfiles.d(5) file for systemd to create persistent state
directory on so-called "volatile" systems.

* Makefile (TMPFILES): New.
  (install-server): Also install "tmpfiles.d-mandos.conf" file as
                    "/usr/lib/tmpfiles.d/mandos.conf".
* tmpfiles.d-mandos.conf: New.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
/*
3
3
 * Splashy - Read a password from splashy and output it
4
4
 * 
5
 
 * Copyright © 2008-2011 Teddy Hogeborn
6
 
 * Copyright © 2008-2011 Björn Påhlsson
 
5
 * Copyright © 2008-2016 Teddy Hogeborn
 
6
 * Copyright © 2008-2016 Björn Påhlsson
7
7
 * 
8
8
 * This program is free software: you can redistribute it and/or
9
9
 * modify it under the terms of the GNU General Public License as
61
61
int signal_received;
62
62
 
63
63
/* Function to use when printing errors */
 
64
__attribute__((format (gnu_printf, 3, 4)))
64
65
void error_plus(int status, int errnum, const char *formatstring,
65
66
                ...){
66
67
  va_list ap;
69
70
  
70
71
  va_start(ap, formatstring);
71
72
  ret = vasprintf(&text, formatstring, ap);
72
 
  if (ret == -1){
 
73
  if(ret == -1){
73
74
    fprintf(stderr, "Mandos plugin %s: ",
74
75
            program_invocation_short_name);
75
76
    vfprintf(stderr, formatstring, ap);