Bug 32139 - Cброс прав на файл при ini_config_set
Summary: Cброс прав на файл при ini_config_set
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: libshell (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Alexey Gladkov
QA Contact: qa-sisyphus
URL: https://github.com/legionus/libshell/...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-26 14:26 MSK by Andrey Cherepanov
Modified: 2016-06-30 17:23 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).