Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 2024 00:59:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 277060] pax(1) hangs in copy mode under certain conditions
Message-ID:  <bug-277060-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277060

            Bug ID: 277060
           Summary: pax(1) hangs in copy mode under certain conditions
           Product: Base System
           Version: 14.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: c433li@gmail.com

The issue is best illustrated with a demo first:

----
# mkdir demo
# cd demo
# echo '/usr/local/' | pax -rw .
(hangs forever, interrupt with Ctrl-C)
# echo '/usr/local/' | pax -rw .
(this time it completes successfully)
----

In other words, when `pax(1)` is operating under copy mode (the forth synop=
sis
form):

----
pax -r -w [file ...] directory
----

If *all* the following conditions are met, it will hang forever:
1. the `file` operand is not specified; and
2. its has its standard input piped; and
3. the (piped) standard input contains a line that is directory (as the
conceptual equivalence of `file` operand); and
4. the `file`(which is a directory) contains at least two components ('*/*/=
');
and
5. the destination directory does not contain all the parent components of
`file`; and
6. the directory is specified with a slash (`/`) at the end.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277060-227>