[cmake-developers] [CMake 0015163]: wrong permissions on base files with nonstandard umask setting

Mantis Bug Tracker mantis at public.kitware.com
Thu Sep 18 11:44:10 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15163 
====================================================================== 
Reported By:                Ilya Rusyanov
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15163
Category:                   (No Category)
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-09-18 11:44 EDT
Last Modified:              2014-09-18 11:44 EDT
====================================================================== 
Summary:                    wrong permissions on base files with nonstandard
umask setting
Description: 
If umask is different from 022, CPack will generate wrong permission on base
directories.

Steps to Reproduce: 
umask 027

cmake ../src
make
cpack -G DEB
dpkg -c test.deb

drwxr-x--- root/root         0 2014-09-18 19:40 ./usr/
drwxr-x--- root/root         0 2014-09-18 19:40 ./usr/share/
drwxr-x--- root/root         0 2014-09-18 19:40 ./usr/share/testproj/
drwxr-x--- root/root         0 2014-09-18 19:40 ./usr/share/testproj/data/
drwxr-xr-x root/root         0 2014-09-18 19:40
./usr/share/testproj/data/180-188-189/
-rw-r--r-- root/root        16 2014-09-18 15:22
./usr/share/testproj/data/180-188-189/general.ini




Additional Information: 
Please notice directory permissions on /usr, /usr/share, /usr/share/testproj,
/usr/share/testproj/data. Everything is fine with supplied inner directories and
files.

INSTALL command is not given any PERMISSIONS options, and, as documentation says
they should be default: 755 for directories and 644 for regular files.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-09-18 11:44 Ilya Rusyanov  New Issue                                    
======================================================================



More information about the cmake-developers mailing list