lzip: Can't create output file (Users)
> > Still not sure what I do wrong. Sorry for so many pictures, but I hope
> it
> > clears what I am talking about.
>
> I can confirm this behavior on my system for my lzip 1.9 and lzip 1.20
> ports.
>
> -o
or --output=file
only works when reading from
> stdin, as the help screen says.
>
> When reading from a file, lzip always takes the input file name and appends
> .lz
.
From main.cc
:
const struct { const char * from; const char * to; } known_extensions[] = {
{ ".lz", "" },
{ ".tlz", ".tar" },
{ 0, 0 } };
[...]
void set_c_outname( const std::string & name, const bool force_ext,
const bool multifile )
{
output_filename = name;
if( multifile ) output_filename += "00001";
if( force_ext || multifile || extension_index( output_filename ) < 0 )
output_filename += known_extensions[0].from;
}
[...]
---
Forum admin
Complete thread:
- lzip: Can't create output file - fritz.mueller, 03.01.2024, 20:16 (Users)
- lzip: Can't create output file - rr, 03.01.2024, 22:54
- lzip: Can't create output file - fritz.mueller, 04.01.2024, 13:53
- lzip: Can't create output file - tom, 04.01.2024, 16:10
- lzip: Can't create output file - rr, 04.01.2024, 20:07
- lzip: Can't create output file - rr, 04.01.2024, 20:14
- lzip: Can't create output file - rr, 04.01.2024, 23:10
- lzip: Can't create output file - fritz.mueller, 04.01.2024, 23:23
- lzip: Can't create output file - fritz.mueller, 04.01.2024, 23:29
- lzip: Can't create output file - rr, 07.01.2024, 17:17
- lzip: Can't create output file - fritz.mueller, 07.01.2024, 18:09
- lzip: Can't create output file - rr, 07.01.2024, 17:17
- lzip: Can't create output file - rr, 07.01.2024, 17:12
- lzip: Can't create output file - fritz.mueller, 04.01.2024, 23:29
- lzip: Can't create output file - fritz.mueller, 04.01.2024, 23:23