=== modified file 'TODO' --- TODO 2008-09-17 00:34:09 +0000 +++ TODO 2008-09-19 00:00:51 +0000 @@ -7,8 +7,7 @@ * mandos-client ** TODO [#B] Temporarily lower kernel log level for less printouts during sucessfull boot. -** TODO IPv4 support -** TODO use strsep instead of strtok? +** TODO [#C] IPv4 support * DONE password-prompt === modified file 'debian/mandos-client.README.Debian' --- debian/mandos-client.README.Debian 2008-09-17 00:34:09 +0000 +++ debian/mandos-client.README.Debian 2008-09-19 00:00:51 +0000 @@ -3,6 +3,11 @@ stanza to copy and paste into /etc/mandos/clients.conf on the Mandos server. +Also, if some other network interface than "eth0" is used, it will be +necessary to edit /etc/mandos/plugin-runner.conf to uncomment and +change the line there. If this file is changed, it will be necessary +to update the initrd image by doing "update-initramfs -k all -u". + It is NOT necessary to edit /etc/crypttab to specify /usr/lib/mandos/plugin-runner as a keyscript for the root file system; if no keyscript is given for the root file system, the Mandos client === modified file 'debian/mandos-client.postrm' --- debian/mandos-client.postrm 2008-09-17 00:34:09 +0000 +++ debian/mandos-client.postrm 2008-09-19 00:00:51 +0000 @@ -30,8 +30,8 @@ # Update the initramfs update_initramfs() { - if which update-initramfs >/dev/null 2>&1; then - update-initramfs -u + if type update-initramfs >/dev/null 2>&1 ; then + update-initramfs -u -k all fi } === modified file 'plugin-runner.c' --- plugin-runner.c 2008-09-07 15:42:11 +0000 +++ plugin-runner.c 2008-09-19 00:00:51 +0000 @@ -72,8 +72,6 @@ const char *argp_program_version = "plugin-runner 1.0"; const char *argp_program_bug_address = ""; -struct plugin; - typedef struct plugin{ char *name; /* can be NULL or any plugin name */ char **argv; @@ -208,8 +206,7 @@ * Descriptor Flags". * *Note File Descriptor Flags:(libc)Descriptor Flags. */ -static int set_cloexec_flag(int fd) -{ +static int set_cloexec_flag(int fd){ int ret = fcntl(fd, F_GETFD, 0); /* If reading the flags failed, return error indication now. */ if(ret < 0){ @@ -222,7 +219,7 @@ /* Mark processes as completed when they exit, and save their exit status. */ -void handle_sigchld(__attribute__((unused)) int sig){ +static void handle_sigchld(__attribute__((unused)) int sig){ while(true){ plugin *proc = plugin_list; int status; @@ -253,7 +250,7 @@ } /* Prints out a password to stdout */ -bool print_out_password(const char *buffer, size_t length){ +static bool print_out_password(const char *buffer, size_t length){ ssize_t ret; for(size_t written = 0; written < length; written += (size_t)ret){ ret = TEMP_FAILURE_RETRY(write(STDOUT_FILENO, buffer + written, === modified file 'plugin-runner.xml' --- plugin-runner.xml 2008-09-12 19:12:40 +0000 +++ plugin-runner.xml 2008-09-19 00:00:51 +0000 @@ -3,7 +3,7 @@ "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ - + ]> @@ -54,10 +54,10 @@ &COMMANDNAME; @@ -170,10 +170,10 @@