Mantis - cas_cptemplates
Viewing Issue Advanced Details
4762 regular use minor always 2011-04-24 07:48 2011-07-10 18:25
ja  
phil  
normal  
assigned  
open  
none    
none  
0004762: cswcptemplates doesn't set ownerships and file permissions
cswcptemplates doesn't set the ownerships and file permissions given in pkgmap of the package. Instead the system defaults settings were used.
I figured out, that the following line in i.cswcptemplates might be the reason:

contents=`grep "^${file} " $PKG_INSTALL_ROOT/var/sadm/install/contents`

$contents was always empty, so no information about modes and ownerships could have been extracted.

When using this:

contents=`grep "^${TEMPLATEDIR}/${PKG}/${file} " $PKG_INSTALL_ROOT/var/sadm/install/contents`

ownerships and permissions were set as written in the pkgmap file.
Issue History
2011-04-24 07:48 ja New Issue
2011-04-24 16:44 bwalton Project cswclassutils => cas_cptemplates
2011-04-24 16:45 bwalton Note Added: 0008998
2011-04-24 16:46 bwalton Status new => assigned
2011-04-24 16:46 bwalton Assigned To => phil
2011-04-24 16:46 bwalton Note Added: 0008999
2011-04-26 03:38 phil Note Added: 0009001
2011-04-26 04:12 bwalton Note Added: 0009002
2011-07-10 18:25 ja Note Added: 0009194

Notes
(0008998)
bwalton   
2011-04-24 16:45   
Moved this issue to cas_cptemplates (package specific) since each CAS is now an independent package.

Phil, when you've fixed this in the GAR repo, you can get an updated package with:
gmake package-CSWcas-cptemplates

Thanks
-Ben
(0008999)
bwalton   
2011-04-24 16:46   
Phil: Not sure if I properly reassigned this before making the previous note.
(0009001)
phil   
2011-04-26 03:38   
I may not be able to focus on this issue for a while. suggested fixes welcomed.
(0009002)
bwalton   
2011-04-26 04:12   
I haven't tested this, but it might work...As you can't rely on install/contents for the info you need, can it be gathered from $src instead?

HTH.
-Ben
(0009194)
ja   
2011-07-10 18:25   
Sorry for my delay. I'm not very familiar with cas scripts, but I think, it's ok to look for the ownerships and permissions in install/contents, because the script is calling "pkgadm sync" some lines before, so the information should be there.

In $src is stored only the filename of a temporary file used by the cas script. No information about ownerships and permissions.

Regards,
Juergen