Mercurial > masqmail
view devel/are-options-documented @ 331:e507c854a63e
Security fix! Correct handling of seteuid() return value
See Debian bug #638002, reported by John Lightsey.
When possible the (already available) set_euidgid() function is used.
Additionally, it is unnecessary to change the identity when writing
into an already open file descriptor.
This should fix the problem.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 27 Aug 2011 16:19:07 +0200 |
parents | 7b70bf4f1f42 |
children | 4905a1d9e6a7 |
line wrap: on
line source
#!/bin/sh # # checks if all recognized options are documented # run from masqmail's repository root dir # # Note: this script is far from perfect, but its development time to # usage value ratio is quite good :-) docs="/tmp/masqmail-opts-docs.$$" code="/tmp/masqmail-opts-code.$$" cat man/masqmail.*.5 | grep -o '^\\fB[^(\\]*\\f.' | egrep -v 'OBSOLETE|http://' | sed 's,^\\fB,,; s,[\\ =].*,,' | sort -u | grep -v '^val$' >"$docs" cat src/conf.c | grep 'lval,.*"' | sed 's,[^"]*",,; s,"\, [0-9]*,",; s,".*,,' | sort -u >"$code" diff -U 0 "$code" "$docs" | grep -v '^@@' rm -f "$docs" "$code"