Bug 32139

Summary: Cброс прав на файл при ini_config_set
Product: Sisyphus Reporter: Andrey Cherepanov <cas>
Component: libshellAssignee: Alexey Gladkov <legion>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: legion
Version: unstable   
Hardware: all   
OS: Linux   
URL: https://github.com/legionus/libshell/commit/a32b8132247e1fc5649517ed7d62c708a0488e03

Description Andrey Cherepanov 2016-05-26 14:26:19 MSK
[root@c228 ~]# . shell-ini-config
[root@c228 ~]# ls -l /etc/krb5.conf
-rw-r--r-- 1 root root 606 фев 25  2014 /etc/krb5.conf
[root@c228 ~]# ini_config_set /etc/krb5.conf libdefaults default_realm SCHOOL.ALT
[root@c228 ~]# ls -l /etc/krb5.conf
-rw------- 1 root root 595 май 26 14:22 /etc/krb5.conf

права на файл сбрасываются с 0644 на 0600.

С shell-config всё нормально.
Comment 1 Repository Robot 2016-06-30 17:23:03 MSK
libshell-0.4.1-alt2 -> sisyphus:

* Thu Jun 30 2016 Alexey Gladkov <legion@altlinux> 0.4.1-alt2
- shell-ini-config changes:
  + Preserve file permissions (ALT#32139).