Changeset 65 for trunk


Ignore:
Timestamp:
Oct 29, 2006, 11:33:21 PM (18 years ago)
Author:
rainer
Message:

Fix some minor bugs.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile.in

    r60 r65  
    819819
    820820deb-run:
    821         @maintainer=`gpg --list-secret-keys | grep 'sec ' | cut -d" " -f 5-`;\
     821        @maintainer=`gpg --list-secret-keys | grep 'sec ' | cut -d" " -f 5- | sed 's/^ *//' | sed q1`;\
    822822        if test "x$$maintainer" = x; then \
    823823                maintainer="Nobody Nowhere <nobody@example.com>"; \
     
    851851        echo $(sysconfdir)/@install_name@rc > debian/conffiles; \
    852852        echo /etc/init.d/@install_name@ >> debian/conffiles; \
    853         cp init/samhain.startLinux debian/@install_name@.init; \
     853        if test -f /usr/lib/lsb/install_initd; then \
     854          cp init/samhain.startLSB debian/@install_name@.init; \
     855        else \
     856          cp init/samhain.startLinux debian/@install_name@.init; \
     857        fi; \
    854858        echo "Source: samhain"     > debian/control; \
    855859        echo "Section: admin"     >> debian/control; \
  • trunk/docs/Changelog

    r63 r65  
    1 2.2.5:
     12.2.6:
     2        * fix error about non-readable file with no checksum required
     3        * fix server warning about 'no server name known'
     4        * fix 'make deb' makefile target
     5        * fix default export severity for server
     6       
     72.2.5 (05-10-2006):
    28        * fix broken Install.sh, reported by Alexander Kraemer
    39        * workaround for glob(3) sillyness on MacOS X (reported by David)
  • trunk/dsys/comINSTALL

    r40 r65  
    329329        if test "x$mytest_file" = x; then
    330330            rcfile_perm=640;
    331             rcfile_owner=`ls -ld ${yule_data} | awk '{print $3 }'`
    332             rcfile_group=`ls -ld ${yule_data} | awk '{print $4 }'`
     331            xgid=`(cat /etc/group; ypcat group) 2>/dev/null |\
     332              grep "^samhain:" | awk -F: '{ print $3; }'`
     333            if test "x$xgid" = x; then
     334              rcfile_owner=`ls -ld ${yule_data} | awk '{print $3 }'`
     335              rcfile_group=`ls -ld ${yule_data} | awk '{print $4 }'`
     336            else
     337              rcfile_owner=`ls -ld ${yule_data} | awk '{print $3 }'`
     338              rcfile_group=samhain
     339            fi
    333340        else
    334341            mytest_file=`basename $mytest_file`
     
    546553        if test "x$mytest_file" = x; then
    547554            rcfile_perm=640;
    548             rcfile_owner=`ls -ld ${yule_data} | awk '{print $3 }'`
    549             rcfile_group=`ls -ld ${yule_data} | awk '{print $4 }'`
     555            xgid=`(cat /etc/group; ypcat group) 2>/dev/null |\
     556              grep "^samhain:" | awk -F: '{ print $3; }'`
     557            if test "x$xgid" = x; then
     558              rcfile_owner=`ls -ld ${yule_data} | awk '{print $3 }'`
     559              rcfile_group=`ls -ld ${yule_data} | awk '{print $4 }'`
     560            else
     561              rcfile_owner=`ls -ld ${yule_data} | awk '{print $3 }'`
     562              rcfile_group=samhain
     563            fi
    550564        else
    551565            mytest_file=`basename $mytest_file`
  • trunk/rules.deb.in

    r1 r65  
    7070        dh_installdebconf       
    7171        dh_installdocs
    72         [ -f debian/tmp/usr/share/doc/@install_name@/MANUAL-2_0.html.tar ] && \
     72        [ -f debian/tmp/usr/share/doc/@install_name@/MANUAL-2_2.html.tar ] && \
    7373                cd debian/tmp/usr/share/doc/@install_name@ && \
    74                 tar xf MANUAL-2_0.html.tar && mv MANUAL-2_0 manual.html && \
    75                 rm -f MANUAL-2_0.html.tar
     74                tar xf MANUAL-2_2.html.tar && mv MANUAL-2_2 manual.html && \
     75                rm -f MANUAL-2_2.html.tar
    7676        dh_installexamples @top_srcdir@/scripts/example_pager.pl \
    7777                @top_srcdir@/scripts/example_sms.pl \
     
    9090                    sed 's%/etc/init.d/@install_name@ start%:%' > postinst.tmp && \
    9191                    mv postinst.tmp postinst.debhelper
     92        [ -f debian/postinst.debhelper ] && \
     93                cd debian && \
     94                cat postinst.debhelper | \
     95                    sed 's%invoke-rc.d @install_name@ start%:%' > postinst.tmp && \
     96                    mv postinst.tmp postinst.debhelper
    9297        [ -f debian/prerm.debhelper ] && \
    9398                cd debian && \
    9499                cat prerm.debhelper | \
    95100                    sed 's%/etc/init.d/@install_name@ stop%/etc/init.d/@install_name@ stop || echo service @install_name@ already stopped%' > prerm.tmp && \
     101                    mv prerm.tmp prerm.debhelper
     102        [ -f debian/prerm.debhelper ] && \
     103                cd debian && \
     104                cat prerm.debhelper | \
     105                    sed 's%invoke-rc.d @install_name@ stop%invoke-rc.d @install_name@ stop || echo service @install_name@ already stopped%' > prerm.tmp && \
    96106                    mv prerm.tmp prerm.debhelper
    97107        # dh_installmanpages
  • trunk/src/sh_error.c

    r34 r65  
    11301130            class != AUD                               )
    11311131#ifdef SH_WITH_SERVER
    1132            || (flag_inet == S_TRUE) /* always log inet to export */
     1132           /* always log inet to export */
     1133           || (flag_inet == S_TRUE && sh.srvexport.name[0] != '\0')
    11331134#endif
    11341135          /* sh.flag.isserver != GOOD                    && */
     
    15581559  flag_err_info           = SL_TRUE;
    15591560#endif
     1561
     1562#if defined(SH_WITH_SERVER)
     1563  errFlags.exportlevel    = SH_ERR_NOT;
     1564#else
    15601565  errFlags.exportlevel    = (SH_ERR_STAMP | SH_ERR_ERR    | SH_ERR_SEVERE |
    15611566                             SH_ERR_FATAL);
     1567#endif
    15621568
    15631569  errFlags.log_class      = 0xFFFF;
  • trunk/src/sh_unix.c

    r59 r65  
    30903090                   KEY_LEN + 1);
    30913091
    3092       tmp2 = sh_util_safe_name (theFile->fullpath);
    3093       sh_error_handle (level, FIL__, __LINE__, fstat_return, MSG_E_READ,
    3094                        tmp2);
    3095       SH_FREE(tmp2);
     3092      if ((theFile->check_mask & MODI_CHK) != 0)
     3093        {
     3094          tmp2 = sh_util_safe_name (theFile->fullpath);
     3095          sh_error_handle (level, FIL__, __LINE__, fstat_return, MSG_E_READ,
     3096                           tmp2);
     3097          SH_FREE(tmp2);
     3098        }
    30963099    }     
    30973100
Note: See TracChangeset for help on using the changeset viewer.