Bug 17322 - в /etc лежит теперь файл, не являющийся каталогом или текстовым конфигом
Summary: в /etc лежит теперь файл, не являющийся каталогом или текстовым конфигом
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: glibc-core (show other bugs)
Version: unstable
Hardware: all Linux
: P2 minor
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-25 10:10 MSD by nbr
Modified: 2008-09-25 14:57 MSD (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nbr 2008-09-25 10:10:52 MSD
/etc/localtime имеет смысл выложить куда-то в /usr/share/ или в /usr/lib
это теперь не конфиг, читаемый человеком.
Comment 1 nbr 2008-09-25 10:27:53 MSD
Это еще и нарушение FHS
http://www.pathname.com/fhs/pub/fhs-2.3.html#ETCHOSTSPECIFICSYSTEMCONFIGURATION
цитата:
/etc : Host-specific system configuration
Purpose

The /etc hierarchy contains configuration files. A "configuration file" is a local file used to control the operation of a program; it must be static and cannot be an executable binary. [4]
Requirements

No binaries may be located under /etc. [5]
Comment 2 Andrey Rahmatullin 2008-09-25 10:33:43 MSD
$ file /etc/localtime
/etc/localtime: timezone data
Comment 3 nbr 2008-09-25 10:35:51 MSD
(In reply to comment #2)
> $ file /etc/localtime
> /etc/localtime: timezone data
> 

Ну да, файл-то бинарный.
Comment 4 nbr 2008-09-25 12:10:36 MSD
Меня убедили на #altlinux что это мелочь.
В принципе можно хранить localtime в /lib.
Comment 5 Andrey Rahmatullin 2008-09-25 14:43:23 MSD
(In reply to comment #3)
> Ну да, файл-то бинарный.
Ну т.е. вы не отличаете "бинарный" от "executable binary".
Неудивительно, да.
Comment 6 nbr 2008-09-25 14:57:37 MSD
(In reply to comment #5)
> (In reply to comment #3)
> > Ну да, файл-то бинарный.
> Ну т.е. вы не отличаете "бинарный" от "executable binary".
> Неудивительно, да.
> 

Да нет, отличаю.
Но в стандарте четко написано
No binaries may be located under /etc. [5]
То есть binaries - всех - и data и executable.
В предыдущем абзаце, когда надо было - они сказали про executable binary.