Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

lzip: Can't create output file (Users)

posted by rr Homepage E-mail, Berlin, Germany, 04.01.2024, 20:14

> > 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:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 212 users online (0 registered, 212 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum