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

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

    <bug>
          <bug_id>34205</bug_id>
          
          <creation_ts>2017-11-16 08:37:36 +0300</creation_ts>
          <short_desc>wrong (unowned) folder permissions for `extfs.d/rpm run $NAME.rpm UPGRADE`</short_desc>
          <delta_ts>2018-08-31 14:36:16 +0300</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>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="ildar">ildar</reporter>
          <assigned_to name="Sergey Y. Afonin">asy</assigned_to>
          <cc>aborodin</cc>
    
    <cc>asy</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>167277</commentid>
    <comment_count>0</comment_count>
    <who name="ildar">ildar</who>
    <bug_when>2017-11-16 08:37:36 +0300</bug_when>
    <thetext>после установки:
$ ls -ld /usr/share/fonts/ttf/eosrei-emojione
drwx------ 2 root root 4096 ноя 16 11:25 /usr/share/fonts/ttf/eosrei-emojione</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167294</commentid>
    <comment_count>1</comment_count>
    <who name="viy">viy</who>
    <bug_when>2017-11-16 16:32:32 +0300</bug_when>
    <thetext>не подземный ли стук часом?
у меня не воспроизвелось:

$ sudo rpm -Uvh /var/ftp/pub/Linux/ALT/Sisyphus/files/noarch/RPMS/fonts-ttf-eosrei-emojione-1.0-alt1_5.noarch.rpm 
[sudo] password for igor:
Подготовка...      ##################################################
fonts-ttf-eosrei-emojione    ##################################################
Running /usr/lib/rpm/posttrans-filetriggers
igor@ohmu ~ $ ls -ld /usr/share/fonts/ttf/eosrei-emojione
drwxr-xr-x 2 root root 4096 ноя 16 15:30 /usr/share/fonts/ttf/eosrei-emojione</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167310</commentid>
    <comment_count>2</comment_count>
    <who name="ildar">ildar</who>
    <bug_when>2017-11-17 10:56:48 +0300</bug_when>
    <thetext>действительно интересно то, что проблемы нет, если делать `rpm -Uvh`, но проявляется, если запустить в p8:
&gt; # /usr/lib/mc/extfs.d/rpm run /tmp/fonts-ttf-eosrei-emojione-1.0-alt1_5.noarch.rpm UPGRADE

Мне удалось повторить это в hasher/p8, но не в hasher/Sisyphus!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167311</commentid>
    <comment_count>3</comment_count>
    <who name="viy">viy</who>
    <bug_when>2017-11-17 11:12:21 +0300</bug_when>
    <thetext>да. непонятно, кому баг. mc в p8?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167314</commentid>
    <comment_count>4</comment_count>
    <who name="ildar">ildar</who>
    <bug_when>2017-11-17 12:23:52 +0300</bug_when>
    <thetext>перевешал.
Бага микроскопическая, исправять необязательно.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167821</commentid>
    <comment_count>5</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2017-12-11 11:41:02 +0300</bug_when>
    <thetext>Действительно какой-то непонятный подземный стук:

+ case &quot;$1&quot; in
+ echo &apos;Upgrading &quot;fonts-ttf-eosrei-emojione-1.0-alt1_5.noarch.rpm&quot;&apos;
Upgrading &quot;fonts-ttf-eosrei-emojione-1.0-alt1_5.noarch.rpm&quot;
+ rpm -Uvh fonts-ttf-eosrei-emojione-1.0-alt1_5.noarch.rpm
Preparing...                 ##########################################################################
fonts-ttf-eosrei-emojione    ##########################################################################
Running /usr/lib/rpm/posttrans-filetriggers
+ exit 0

То есть, extfs.d/rpm run, в итоге, запускает всё тот же &quot;rpm -Uvh&quot;. Я пока не понимаю, почему при запуске из-под mc получаются такие права. Единственное предположение - существование какого-то дефолта, отличного от обычного, в этот момент и bug 34316. По идее, это должно бы было во всех подобных случаях вылезать.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167864</commentid>
    <comment_count>6</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2017-12-12 09:46:47 +0300</bug_when>
    <thetext>(In reply to comment #5)

После исправления bug 34316 права назначились правильно. Вопрос теперь, откуда берётся непонятное умолчаение, и почему оно отличается от того, что присутствует при запуске rpm напрямую.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>167865</commentid>
    <comment_count>7</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2017-12-12 10:18:28 +0300</bug_when>
    <thetext>В extfs.d/rpm нашёлся вызов umask 077. Вопрос только теперь, хорошо это, или плохо. И зачем было сделано. Если его убрать, получается 

# ls -ld /usr/share/fonts/ttf/eosrei-emojione
drwxr-xr-x 2 root root 4096 Dec 12 11:15 /usr/share/fonts/ttf/eosrei-emojione

для пакета с неисправленным bug 34316.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>170405</commentid>
    <comment_count>8</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2018-04-14 10:54:00 +0300</bug_when>
    <thetext>Что-то совсем древнее...

commit 549fecfff7ab37acc2156e9bc58e427ce96660b1
Author: Norbert Warmuth &lt;nwarmuth@privat.circular.de&gt;
Date:   Wed Dec 16 06:16:13 1998 +0000

    Wed Dec 16 06:47:47 1998  Norbert Warmuth  &lt;nwarmuth@privat.circular.de&gt;

    * screen.c (Xtry_to_select): Don&apos;t select a similar file when
    &quot;name&quot; can&apos;t be found in the panel (when deleting files the
    selection jumpped from the deleted &quot;file&quot; to a directory which
    started with the same character as &quot;file&quot;, annoying).
    Strip known vfs suffixes from &quot;name&quot; before trying to select
    (I think Timur made this suggestion a few months ago). Know the
    vfs is mature enough to do this.

    * vfs/vfs.c (vfs_strip_suffix_from_filename): New function which strips
    known vfs suffixes from a filename and returns a malloced string
    which has to be freed. Possible improvement: strip vfs suffix from
    last path component.

    * vfs/extfs/*: added &quot;umask 077&quot; to every script.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>173798</commentid>
    <comment_count>9</comment_count>
    <who name="Sergey Y. Afonin">asy</who>
    <bug_when>2018-08-31 14:36:16 +0300</bug_when>
    <thetext>(In reply to comment #7)

&gt; В extfs.d/rpm нашёлся вызов umask 077. Вопрос только теперь, хорошо это, или
&gt; плохо. И зачем было сделано.

Если у кого-то будут идеи, почему это надо убрать, пишите и переоткрывайте. Пока оставлю, как есть, так как проблема проявилась из-за установки из rpm неупакованного в пакет безхозного каталога, что, в общем-то, само по себе ошибка. Если кто-то придумает, зачем вызов umask 077 мог быть добавлен, тоже напишите на всякий случай.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>