/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 debian/mandos.postinst

  • Committer: Teddy Hogeborn
  • Date: 2009-01-17 00:26:13 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090117002613-lg5x2b8mnmi3alqy
Fix problem found using cppcheck, thanks to George Danchev
<danchev@spnet.net> for the report and fix:

* plugin-runner.c (getplugin): Bug fix: Free the plugin struct in case
                               of strdup failure.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -e
 
1
#!/bin/bash -e
2
2
# This script can be called in the following ways:
3
3
#
4
4
# After the package was installed:
18
18
case "$1" in
19
19
    configure)
20
20
        # Rename old "mandos" user and group
21
 
        case "`getent passwd mandos`" in
 
21
        case "$(getent passwd mandos)" in
22
22
            *:Mandos\ password\ system,,,:/nonexistent:/bin/false)
23
23
                usermod --login _mandos mandos
24
24
                groupmod --new-name _mandos mandos
37
37
        ;;
38
38
 
39
39
    *)
40
 
        echo "$0 called with unknown argument '$1'" 1>&2
 
40
        echo "$0 called with unknown argument \`$1'" 1>&2
41
41
        exit 1
42
42
        ;;
43
43
esac