1
0
Fork 0

Merging upstream version 1.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-17 21:54:20 +01:00
parent 38137c31f4
commit 590e419a4b
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
13 changed files with 30 additions and 30 deletions

View file

@ -1,11 +1,11 @@
2010-12-17 Antonio Diaz Diaz <ant_diaz@teleline.es> 2011-01-17 Antonio Diaz Diaz <ant_diaz@teleline.es>
* Version 1.0-rc1 released. * Version 1.0 released.
* Initial release. * Initial release.
* Created from the decompression code of clzip 1.1-rc2. * Created from the decompression code of clzip 1.1.
Copyright (C) 2010 Antonio Diaz Diaz. Copyright (C) 2010, 2011 Antonio Diaz Diaz.
This file is a collection of facts, and thus it is not copyrightable, This file is a collection of facts, and thus it is not copyrightable,
but just in case, you have unlimited permission to copy, distribute and but just in case, you have unlimited permission to copy, distribute and

View file

@ -50,7 +50,7 @@ After running `configure', you can run `make' and `make install' as
explained above. explained above.
Copyright (C) 2010 Antonio Diaz Diaz. Copyright (C) 2010, 2011 Antonio Diaz Diaz.
This file is free documentation: you have unlimited permission to copy, This file is free documentation: you have unlimited permission to copy,
distribute and modify it. distribute and modify it.

2
NEWS
View file

@ -2,4 +2,4 @@ Changes in version 1.0:
Initial release. Initial release.
Created from the decompression code of clzip 1.1-rc2. Created from the decompression code of clzip 1.1.

2
README
View file

@ -32,7 +32,7 @@ few tens of KiB larger than the dictionary size used to compress that
file. file.
Copyright (C) 2010 Antonio Diaz Diaz. Copyright (C) 2010, 2011 Antonio Diaz Diaz.
This file is free documentation: you have unlimited permission to copy, This file is free documentation: you have unlimited permission to copy,
distribute and modify it. distribute and modify it.

View file

@ -1,5 +1,5 @@
/* Arg_parser - A POSIX/GNU command line argument parser. (C version) /* Arg_parser - POSIX/GNU command line argument parser. (C version)
Copyright (C) 2006, 2007, 2008, 2009, 2010 Antonio Diaz Diaz. Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Antonio Diaz Diaz.
This library is free software: you can redistribute it and/or modify This library is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -45,7 +45,8 @@ static char push_back_record( struct Arg_parser * const ap,
{ {
const int len = strlen( argument ); const int len = strlen( argument );
struct ap_Record *p; struct ap_Record *p;
void * tmp = ap_resize_buffer( ap->data, ( ap->data_size + 1 ) * sizeof (struct ap_Record) ); void * tmp = ap_resize_buffer( ap->data,
( ap->data_size + 1 ) * sizeof (struct ap_Record) );
if( !tmp ) return 0; if( !tmp ) return 0;
ap->data = (struct ap_Record *)tmp; ap->data = (struct ap_Record *)tmp;
p = &(ap->data[ap->data_size]); p = &(ap->data[ap->data_size]);

View file

@ -1,5 +1,5 @@
/* Arg_parser - A POSIX/GNU command line argument parser. (C version) /* Arg_parser - POSIX/GNU command line argument parser. (C version)
Copyright (C) 2006, 2007, 2008, 2009, 2010 Antonio Diaz Diaz. Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Antonio Diaz Diaz.
This library is free software: you can redistribute it and/or modify This library is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by

8
configure vendored
View file

@ -1,16 +1,14 @@
#! /bin/sh #! /bin/sh
# configure script for Lunzip - Decompressor for lzip files # configure script for Lunzip - Decompressor for lzip files
# Copyright (C) 2010 Antonio Diaz Diaz. # Copyright (C) 2010, 2011 Antonio Diaz Diaz.
# #
# This configure script is free software: you have unlimited permission # This configure script is free software: you have unlimited permission
# to copy, distribute and modify it. # to copy, distribute and modify it.
#
# Date of this version: 2010-12-17
args= args=
no_create= no_create=
pkgname=lunzip pkgname=lunzip
pkgversion=1.0-rc1 pkgversion=1.0
progname=lunzip progname=lunzip
srctrigger=lunzip.h srctrigger=lunzip.h
@ -167,7 +165,7 @@ echo "LDFLAGS = ${LDFLAGS}"
rm -f Makefile rm -f Makefile
cat > Makefile << EOF cat > Makefile << EOF
# Makefile for Lunzip - Decompressor for lzip files # Makefile for Lunzip - Decompressor for lzip files
# Copyright (C) 2010 Antonio Diaz Diaz. # Copyright (C) 2010, 2011 Antonio Diaz Diaz.
# This file was generated automatically by configure. Do not edit. # This file was generated automatically by configure. Do not edit.
# #
# This Makefile is free software: you have unlimited permission # This Makefile is free software: you have unlimited permission

View file

@ -1,5 +1,5 @@
/* Lunzip - Decompressor for lzip files /* Lunzip - Decompressor for lzip files
Copyright (C) 2010 Antonio Diaz Diaz. Copyright (C) 2010, 2011 Antonio Diaz Diaz.
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by

View file

@ -1,5 +1,5 @@
/* Lunzip - Decompressor for lzip files /* Lunzip - Decompressor for lzip files
Copyright (C) 2010 Antonio Diaz Diaz. Copyright (C) 2010, 2011 Antonio Diaz Diaz.
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.37.1. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.37.1.
.TH LUNZIP "1" "December 2010" "Lunzip 1.0-rc1" "User Commands" .TH LUNZIP "1" "January 2011" "Lunzip 1.0" "User Commands"
.SH NAME .SH NAME
Lunzip \- small decompressor for lzip files Lunzip \- small decompressor for lzip files
.SH SYNOPSIS .SH SYNOPSIS
@ -19,7 +19,7 @@ output version information and exit
send output to standard output send output to standard output
.TP .TP
\fB\-d\fR, \fB\-\-decompress\fR \fB\-d\fR, \fB\-\-decompress\fR
decompress decompress (this is the default)
.TP .TP
\fB\-f\fR, \fB\-\-force\fR \fB\-f\fR, \fB\-\-force\fR
overwrite existing output files overwrite existing output files
@ -46,7 +46,7 @@ Report bugs to lzip\-bug@nongnu.org
.br .br
Lunzip home page: http://www.nongnu.org/lzip/lunzip.html Lunzip home page: http://www.nongnu.org/lzip/lunzip.html
.SH COPYRIGHT .SH COPYRIGHT
Copyright \(co 2010 Antonio Diaz Diaz. Copyright \(co 2011 Antonio Diaz Diaz.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
.br .br
This is free software: you are free to change and redistribute it. This is free software: you are free to change and redistribute it.

View file

@ -1,5 +1,5 @@
/* Lunzip - Decompressor for lzip files /* Lunzip - Decompressor for lzip files
Copyright (C) 2010 Antonio Diaz Diaz. Copyright (C) 2010, 2011 Antonio Diaz Diaz.
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by

13
main.c
View file

@ -1,5 +1,5 @@
/* Lunzip - Decompressor for lzip files /* Lunzip - Decompressor for lzip files
Copyright (C) 2010 Antonio Diaz Diaz. Copyright (C) 2010, 2011 Antonio Diaz Diaz.
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
@ -63,7 +63,7 @@ long long int llabs( long long int number );
const char * const Program_name = "Lunzip"; const char * const Program_name = "Lunzip";
const char * const program_name = "lunzip"; const char * const program_name = "lunzip";
const char * const program_year = "2010"; const char * const program_year = "2011";
const char * invocation_name = 0; const char * invocation_name = 0;
#ifdef O_BINARY #ifdef O_BINARY
@ -106,7 +106,7 @@ static void show_help()
printf( " -h, --help display this help and exit\n" ); printf( " -h, --help display this help and exit\n" );
printf( " -V, --version output version information and exit\n" ); printf( " -V, --version output version information and exit\n" );
printf( " -c, --stdout send output to standard output\n" ); printf( " -c, --stdout send output to standard output\n" );
printf( " -d, --decompress decompress\n" ); printf( " -d, --decompress decompress (this is the default)\n" );
printf( " -f, --force overwrite existing output files\n" ); printf( " -f, --force overwrite existing output files\n" );
printf( " -k, --keep keep (don't delete) input files\n" ); printf( " -k, --keep keep (don't delete) input files\n" );
printf( " -o, --output=<file> if reading stdin, place the output into <file>\n" ); printf( " -o, --output=<file> if reading stdin, place the output into <file>\n" );
@ -260,9 +260,10 @@ static void close_and_set_permissions( const struct stat * const in_statsp )
bool error = false; bool error = false;
if( in_statsp ) if( in_statsp )
{ {
if( fchmod( outfd, in_statsp->st_mode ) != 0 || if( ( fchown( outfd, in_statsp->st_uid, in_statsp->st_gid ) != 0 &&
( fchown( outfd, in_statsp->st_uid, in_statsp->st_gid ) != 0 && errno != EPERM ) ||
errno != EPERM ) ) error = true; fchmod( outfd, in_statsp->st_mode ) != 0 )
error = true;
/* fchown will in many cases return with EPERM, which can be safely ignored. */ /* fchown will in many cases return with EPERM, which can be safely ignored. */
} }
if( close( outfd ) == 0 ) outfd = -1; if( close( outfd ) == 0 ) outfd = -1;

View file

@ -1,6 +1,6 @@
#! /bin/sh #! /bin/sh
# check script for Lunzip - Decompressor for lzip files # check script for Lunzip - Decompressor for lzip files
# Copyright (C) 2010 Antonio Diaz Diaz. # Copyright (C) 2010, 2011 Antonio Diaz Diaz.
# #
# This script is free software: you have unlimited permission # This script is free software: you have unlimited permission
# to copy, distribute and modify it. # to copy, distribute and modify it.