[bug-notifications] [cswclassutils 0003959]: sampleconf fails sometimes

Mantis Bug Tracker noreply at opencsw.org
Tue Oct 27 18:24:45 CET 2009


A NOTE has been added to this issue. 
====================================================================== 
http://www.opencsw.org/mantis/view.php?id=3959 
====================================================================== 
Reported By:                dam
Assigned To:                
====================================================================== 
Project:                    cswclassutils
Issue ID:                   3959
Category:                   packaging
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2009-10-11 12:55 CEST
Last Modified:              2009-10-27 18:24 CET
====================================================================== 
Summary:                    sampleconf fails sometimes
Description: 
On a fresh installed systems I get errors of the form below for several
packages:
(especially ca-certificates and ssh):

/opt/csw/share/man/man1/ssh-agent.1
/opt/csw/share/man/man1/ssh-keygen.1
/opt/csw/share/man/man1/ssh-keyscan.1
/opt/csw/share/man/man1/ssh.1
/opt/csw/share/man/man5/ssh_config.5
/opt/csw/share/man/man8/ssh-keysign.8
[ verifying class <none> ]
Copying sample config to /opt/csw/etc/ssh/ssh_config
usage:  chmod [-fR] <absolute-mode> file ...
        chmod [-fR] <ACL-operation> file ...
        chmod [-fR] <symbolic-mode-list> file ...
where   <symbolic-mode-list> is a comma-separated list of
        [ugoa]{+|-|=}[rwxXlstugo]
where   <ACL-operation> is one of the following
        A-<acl_specification>
        A[number]-
        A[number]{+|=}<acl_specification>
where   <acl-specification> is a comma-separated list of ACEs

[ verifying class <cswpreserveconf> ]

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0003685 cswpreserveconf
====================================================================== 

---------------------------------------------------------------------- 
 (0006891) dam (administrator) - 2009-10-27 18:24
 http://www.opencsw.org/mantis/view.php?id=3959#c6891 
---------------------------------------------------------------------- 
When pkgserv is active changes to /var/sadm/install/contents are held in a
log and need to be flushed prior to accessing the contents file:

        if [ -f $confdest ] ; then
                echo $confdest already exists. Not overwriting
        else
                echo Copying sample config to $confdest
--> /usr/bin/pkgadm -R $PKG_INSTALL_ROOT sync 2>/dev/null
                contents=`grep "^$dest " /var/sadm/install/contents`
                mode=`echo $contents | awk '{print $4}'`
                user=`echo $contents | awk '{print $5}'`
                group=`echo $contents | awk '{print $6}'`
                cp $dest $confdest

...or something similar as the pkgserv (and hence the 'sync' option) is
available first in 119254/119255-69).




More information about the bug-notifications mailing list