<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>22907</bug_id>
          
          <creation_ts>2010-02-07 11:59:21 +0300</creation_ts>
          <short_desc>повернутые (rotated) логи пытаются просматриваться как man файлы</short_desc>
          <delta_ts>2010-08-26 12:26:40 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>mc</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Chichak">Andrey.Chichak</reporter>
          <assigned_to name="Sergey Y. Afonin">asy</assigned_to>
          <cc>asy</cc>
    
    <cc>evg</cc>
    
    <cc>kopilo4ka</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>106437</commentid>
    <comment_count>0</comment_count>
      <attachid>4242</attachid>
    <who name="Andrey Chichak">Andrey.Chichak</who>
    <bug_when>2010-02-07 11:59:21 +0300</bug_when>
    <thetext>Created attachment 4242
патч для устранения проблемы

При просмотре встроенным просмотрщиком rotated логи пытаются показаться как страница man-а, что не очень удобно в большей части случаев.
Решается просто, решение во вложении.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106462</commentid>
    <comment_count>1</comment_count>
    <who name="Vadim Gusev">kopilo4ka</who>
    <bug_when>2010-02-08 06:12:48 +0300</bug_when>
    <thetext>А есть ли хоть один такой файл, .log.X ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106476</commentid>
    <comment_count>2</comment_count>
    <who name="Andrey Chichak">Andrey.Chichak</who>
    <bug_when>2010-02-08 14:02:17 +0300</bug_when>
    <thetext>(В ответ на комментарий №1)
&gt; А есть ли хоть один такой файл, .log.X ?

в /var/log их много, только часть еще и упакована bzip-ом</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106561</commentid>
    <comment_count>3</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2010-02-10 10:27:27 +0300</bug_when>
    <thetext>Я могу перевесить этот патч в апстрим, но вообще лично у меня очень мало логов foo.log.1.bz2 и полно логов foo.1.bz2, особенно в подкаталогах (kernel, syslog и т.д.).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107295</commentid>
    <comment_count>4</comment_count>
    <who name="Andrey Chichak">Andrey.Chichak</who>
    <bug_when>2010-03-02 07:08:45 +0300</bug_when>
    <thetext>[chch@ws-chch default]$ locate .log.1
/home/chch/.VirtualBox/Machines/w2000/Logs/VBox.log.1
/home/chch/.VirtualBox/Machines/xp/Logs/VBox.log.1
/home/chch/Desktop/Develop/squid/scripts/access.log.1
/var/log/clamav/clamd.log.1.bz2
/var/log/clamav/freshclam.log.1.bz2
/var/log/vsftpd.log.1
/var/log/vzctl.log.1

Они есть. И честно говоря былоб здорово - вспоминая один из главных принципов *nix систем: &quot;минимального удивления&quot; чтобы просматривались такие файлы минуя nroff.
Вот насколько необходим просмотр man-ов встроенным просмотрщиком это отдтельный разговор :о))</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>107365</commentid>
    <comment_count>5</comment_count>
    <who name="Vadim Gusev">kopilo4ka</who>
    <bug_when>2010-03-04 00:58:25 +0300</bug_when>
    <thetext>Можно поиграть вот с этим:

$ file -zb /var/log/clamav/freshclam.log.1.bz2
ASCII text (bzip2 compressed data, block size = 900k)
$ file -zb /usr/share/man/man1/dialog.1.bz2
troff or preprocessor input text (bzip2 compressed data, block size = 900k)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111578</commentid>
    <comment_count>6</comment_count>
    <who name="Andrey Chichak">Andrey.Chichak</who>
    <bug_when>2010-08-26 12:26:40 +0400</bug_when>
    <thetext>наверное починилось, а коли нет, значит и не надо</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>4242</attachid>
            <date>2010-02-07 11:59:21 +0300</date>
            <delta_ts>2010-02-07 11:59:21 +0300</delta_ts>
            <desc>патч для устранения проблемы</desc>
            <filename>mc.ext.diff</filename>
            <type>text/plain</type>
            <size>107</size>
            <attacher name="Andrey Chichak">Andrey.Chichak</attacher>
            
              <data encoding="base64">MzA3YTMwOCwzMTAKPiAjIEV4Y2VwdGlvbiAtIHJvdGF0ZWQgbG9nIGZpbGVzIGFyZSBub3QgbWFu
dWFsIHBhZ2VzCj4gcmVnZXgvXC4obG9nfGxvZ1wuWzAtOVwuXSopJAo+IAlWaWV3PQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>