Paul Eggert
0aa991f386
Update copyright years
...
UPDATE_COPYRIGHT_USE_INTERVALS=1 \
$HOME/src/gnu/gnulib/build-aux/update-copyright \
$(git ls-files | sed -e '/^gnulib$/d
/^paxutils$/d
/^COPYING$/d
/\/fdl.texi$/d')
sed -i '2000,${
/^Copyright @copyright/d
s/^[0-9]*--\(2025 Free Software Foundation, Inc.\)/Copyright (C) \1/
}' doc/tar.texi
2025-01-01 18:33:10 -08:00
Paul Eggert
989842ff0d
Remove unnecessary casts
...
Some of these date back to pre-C89.
* src/buffer.c (backspace_output):
* src/create.c (to_base256, gid_to_chars, major_to_chars)
(minor_to_chars, off_to_chars, time_to_chars, uid_to_chars):
* src/list.c (from_header, tartime):
* src/map.c (owner_map_translate, group_map_translate):
* src/system.c (sys_truncate):
* src/utf8.c (utf8_init):
* src/xattrs.c (acls_one_line):
* src/xheader.c (xheader_string_end):
Remove casts.
* src/create.c (uintmax_to_chars): Remove. All uses removed.
(simple_finish_header): Use to_octal.
2024-11-01 23:47:23 -07:00
Paul Eggert
c26c2ea2e9
Minor utf8.c improvements
...
* src/utf8.c: Minor rephrases for -1.
2024-08-04 01:41:43 -07:00
Paul Eggert
7557fdd4df
Fix unlikely overflow in utf8_convert
...
* src/utf8.c (utf8_convert): Check for integer overflow.
2024-08-04 01:41:43 -07:00
Paul Eggert
c6f0ad5117
Update copyright years
...
UPDATE_COPYRIGHT_USE_INTERVALS=1 \
gnulib/build-aux/update-copyright \
$(git ls-files | sed -e '/^gnulib$/d
/^paxutils$/d
/^COPYING$/d
/\/fdl.texi$/d')
sed -i '2000,${
/^Copyright @copyright/d
s/^[0-9]*--\(2024 Free Software Foundation, Inc.\)/Copyright (C) \1/
}' doc/tar.texi
2024-01-01 19:08:46 -08:00
Paul Eggert
719d3b44b7
Update copyright years
...
UPDATE_COPYRIGHT_USE_INTERVALS=1 \
gnulib/build-aux/update-copyright \
$(git ls-files | sed -e '/^gnulib$/d
/^paxutils$/d
/^COPYING$/d
/\/fdl.texi$/d')
2023-01-06 12:50:36 -08:00
Sergey Poznyakoff
5c713540e3
Update copyright years
2022-01-02 10:25:29 +02:00
Sergey Poznyakoff
afa743ac23
Update copyright years
2021-01-06 17:55:16 +02:00
Sergey Poznyakoff
8d90723d30
Update copyright years
2020-02-08 13:21:13 +02:00
Sergey Poznyakoff
2f5a57be4b
Fix compilation without iconv.
2019-01-14 14:46:43 +02:00
Sergey Poznyakoff
3da8c2850d
Fix iconv usage.
...
Patch by Christian Weisgerber.
* src/utf8.c (utf8_convert): non-zero return from iconv means failure.
2019-01-14 13:59:39 +02:00
Sergey Poznyakoff
2684c88a49
Version 1.31
2019-01-02 20:20:28 +02:00
Sergey Poznyakoff
110e3bd7a6
Fix double-free introduced by 577dc345
...
* src/utf8.c (utf8_convert): Don't store freed value in *output
2018-07-31 15:57:11 +03:00
Pavel Raiskup
577dc34565
Avoid some resource leaks
...
* src/incremen.c (store_rename): Free temp_name, leaked before for
each renamed directory with --listed-incremental.
* src/transform.c (add_literal_segment): Tighten arguments by
const.
(parse_transform_expr): Free 'str', leaked storage for each
--transform option before.
* src/utf8.c (utf8_convert): Deallocate buffer for failed iconv()
call so callers don't have to.
2018-07-31 12:06:09 +03:00
Sergey Poznyakoff
30fe67226a
Update copyright years
2017-01-02 14:49:55 +02:00
Sergey Poznyakoff
8980ecd62d
Update copyright years
2016-01-20 11:29:17 +02:00
Sergey Poznyakoff
45ccda1193
Update copyright years.
2014-01-30 13:54:15 +02:00
Paul Eggert
cd7bdd4076
maint: update copyrights for 2013 and as per current GNU standards
2012-12-31 13:17:15 -08:00
Paul Eggert
6060d613d1
* src/utf8.c (string_ascii_p): Recode to avoid bogus GCC 4.2.1
...
warning about "comparison is always true due to limited range of
data type" when char is unsigned.
2007-10-13 05:49:18 +00:00
Sergey Poznyakoff
a0fb51e136
Relicense under GPLv3
2007-06-27 13:30:12 +00:00
Paul Eggert
8e3f3adf98
Port to Forte Developer 7 C 5.4 and C99.
...
* src/common.h (add_exclude_tag): Add decl; C99 requires this
and Forte warns about it.
* src/incremen.c: Include <mkdtemp.h> for mkdtemp prototype,
for same reason.
* src/misc.c (get_max_open_files): Rewrite to avoid code that
Forte C complains about as being unreachable.
* src/xheader.c (mtime_code): Rewrite to avoid Forte error
reported by Trond Hasle Amundsen.
* src/incremen.c (compare_dirnames): Rewrite to avoid casts.
* src/utf8.c (string_ascii_p): Likewise.
* src/xheader.c (mtime_coder, volume_size_coder, volume_offset_coder):
Likewise.
SCALAR(0x8283218)
2006-12-12 23:56:24 +00:00
Paul Eggert
120e96c480
Update FSF postal mail address.
2005-05-15 03:59:08 +00:00
Sergey Poznyakoff
8ff11f27c1
Use locale_charset() from gnulib
2004-10-25 15:57:48 +00:00
Sergey Poznyakoff
7347b4f5d5
Started merging with cpio into paxutils.
2004-09-06 14:28:55 +00:00
Sergey Poznyakoff
e662d0f367
Make sure ICONV_CONST is defined. AM_ICONV does not define it if it fails to find iconv.h.
2004-04-28 07:44:19 +00:00
Paul Eggert
2bda83b48d
Merge recent gnulib changes, and remove some lint.
2004-04-05 02:29:18 +00:00
Sergey Poznyakoff
a55ec0a319
(utf8_convert): Changed prototype
...
(get_input_charset): Removed unused variable
2004-04-04 09:42:27 +00:00
Sergey Poznyakoff
5282ef9709
(utf8_convert): Indentation fix.
2004-03-02 09:35:13 +00:00
Sergey Poznyakoff
2de1477b3d
Conversions to and from utf-8.
2004-02-22 20:52:34 +00:00