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

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

    <bug>
          <bug_id>53442</bug_id>
          
          <creation_ts>2025-03-13 17:09:04 +0300</creation_ts>
          <short_desc>Создаёт папки и файлы с некорректным владельцем (и падает)</short_desc>
          <delta_ts>2026-03-04 13:55:27 +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>tcpflow</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Artem Varaksa">varaksaaa</reporter>
          <assigned_to name="Afanasov Dmitry">ender</assigned_to>
          <cc>admsasha</cc>
    
    <cc>ender</cc>
    
    <cc>sbolshakov</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>260992</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-03-13 17:09:04 +0300</bug_when>
    <thetext>Шаги
====

1. # apt-get install -y tcpflow
2. # control tcpflow public
3. $ tcpflow -Iao flow

Фактический результат
=====================

Пример для обычного пользователя test.

$ tcpflow -Iao flow
&gt; reportfilename: flow/report.xml
&gt; terminate called after throwing an instance of &apos;std::invalid_argument*&apos;
&gt; Аварийный останов

$ ll flow
&gt; итого 12
&gt; -rw-r--r--  1 root test 2302 мар 13 16:35 report.xml
&gt; drwxr-xr-x  2 root test 4096 мар 13 16:35 ./
&gt; drwx------ 10 test test 4096 мар 13 16:35 ../

Чтобы исправить ситуацию, требуется:

# chown -R test: /home/test/flow

После этого команда `$ tcpflow -Iao flow` работает.
Команда так же работает, если изначально (до 3 шага) создать папку с помощью `$ mkdir flow` с корректными владельцами.

Однако, создаваемые файлы всё равно оказываются с владельцем root:test, что, думаю, само по себе некорректно:

$ ll flow
&gt; итого 52
&gt; -rw-r--r--  1 test test  3837 мар 13 16:55 report.xml
&gt; -rw-r--r--  1 root test 12773 мар 13 16:55 report.pdf
&gt; drwxr-xr-x  2 test test  4096 мар 13 16:55 ./
&gt; -rw-r--r--  1 root test    60 мар 13 16:55 ip1.00022-ip2.45576
&gt; -rw-r--r--  1 root test    23 мар 13 16:55 ip1.00022-ip2.45576.findx
&gt; -rw-r--r--  1 root test     6 мар 13 16:55 ip2.45576-ip1.00022
&gt; -rw-r--r--  1 root test   110 мар 13 16:55 ip2.45576-ip1.00022.findx
&gt; drwx-----x 10 test test 12288 мар 13 16:54 ../

Ожидаемый результат
===================

Отсутствие падения.
Создание всех файлов и папок с корректным владельцем (в данном случае test:test).

Воспроизводимость
=================

Воспроизводится на виртуальных машинах:

[sisyphus] ALT Server 11.0 beta20250213 x86_64
tcpflow-1.6.1-alt2.x86_64

[p10] ALT Server 10.4 x86_64
tcpflow-1.5.0-alt1.x86_64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>283158</commentid>
    <comment_count>1</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2026-03-04 13:55:27 +0300</bug_when>
    <thetext>Ошибка актуальна для tcpflow-1.6.1-alt4.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>