#31 par2cmdline-0.4: Wildcards should not expand to directories.

open
nobody
None
5
2004-05-23
2004-05-23
No

Hi,

There is a bug with DiskFile::FindFiles (diskfile.cpp) on
the UNIX verision of par2cmdline-0.4:

Directories (and non-regular files like sockets) which are
matched by wildcards (e.g. '*') are included in the file
list, causing par2 to die later because directories (and
specials) are not allowed.

I've created (and attached :)) a patch for this issue
(patch was made against version 0.4). It simply ignores
anything which matches the wildcard, but is NOT a
*regular* file. I chose to restrict to regular files
because running par2 on anything else is meaningless.

There is no generally usable workaround for this issue:
Although using `find ... -not -type d` may work in some
circumstances, it does not work in my case, because of
the command line length limit.

Cheers,

Discussion

  • Bardur Arantsson

    Logged In: YES
    user_id=1028385

    I've added code to emit a warning whenever a non-regular
    file is ignored by the wildcard expander.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks