head 1.4; access; symbols pkgsrc-2026Q1:1.4.0.92 pkgsrc-2026Q1-base:1.4 pkgsrc-2025Q4:1.4.0.90 pkgsrc-2025Q4-base:1.4 pkgsrc-2025Q3:1.4.0.88 pkgsrc-2025Q3-base:1.4 pkgsrc-2025Q2:1.4.0.86 pkgsrc-2025Q2-base:1.4 pkgsrc-2025Q1:1.4.0.84 pkgsrc-2025Q1-base:1.4 pkgsrc-2024Q4:1.4.0.82 pkgsrc-2024Q4-base:1.4 pkgsrc-2024Q3:1.4.0.80 pkgsrc-2024Q3-base:1.4 pkgsrc-2024Q2:1.4.0.78 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.4.0.76 pkgsrc-2024Q1-base:1.4 pkgsrc-2023Q4:1.4.0.74 pkgsrc-2023Q4-base:1.4 pkgsrc-2023Q3:1.4.0.72 pkgsrc-2023Q3-base:1.4 pkgsrc-2023Q2:1.4.0.70 pkgsrc-2023Q2-base:1.4 pkgsrc-2023Q1:1.4.0.68 pkgsrc-2023Q1-base:1.4 pkgsrc-2022Q4:1.4.0.66 pkgsrc-2022Q4-base:1.4 pkgsrc-2022Q3:1.4.0.64 pkgsrc-2022Q3-base:1.4 pkgsrc-2022Q2:1.4.0.62 pkgsrc-2022Q2-base:1.4 pkgsrc-2022Q1:1.4.0.60 pkgsrc-2022Q1-base:1.4 pkgsrc-2021Q4:1.4.0.58 pkgsrc-2021Q4-base:1.4 pkgsrc-2021Q3:1.4.0.56 pkgsrc-2021Q3-base:1.4 pkgsrc-2021Q2:1.4.0.54 pkgsrc-2021Q2-base:1.4 pkgsrc-2021Q1:1.4.0.52 pkgsrc-2021Q1-base:1.4 pkgsrc-2020Q4:1.4.0.50 pkgsrc-2020Q4-base:1.4 pkgsrc-2020Q3:1.4.0.48 pkgsrc-2020Q3-base:1.4 pkgsrc-2020Q2:1.4.0.44 pkgsrc-2020Q2-base:1.4 pkgsrc-2020Q1:1.4.0.24 pkgsrc-2020Q1-base:1.4 pkgsrc-2019Q4:1.4.0.46 pkgsrc-2019Q4-base:1.4 pkgsrc-2019Q3:1.4.0.42 pkgsrc-2019Q3-base:1.4 pkgsrc-2019Q2:1.4.0.40 pkgsrc-2019Q2-base:1.4 pkgsrc-2019Q1:1.4.0.38 pkgsrc-2019Q1-base:1.4 pkgsrc-2018Q4:1.4.0.36 pkgsrc-2018Q4-base:1.4 pkgsrc-2018Q3:1.4.0.34 pkgsrc-2018Q3-base:1.4 pkgsrc-2018Q2:1.4.0.32 pkgsrc-2018Q2-base:1.4 pkgsrc-2018Q1:1.4.0.30 pkgsrc-2018Q1-base:1.4 pkgsrc-2017Q4:1.4.0.28 pkgsrc-2017Q4-base:1.4 pkgsrc-2017Q3:1.4.0.26 pkgsrc-2017Q3-base:1.4 pkgsrc-2017Q2:1.4.0.22 pkgsrc-2017Q2-base:1.4 pkgsrc-2017Q1:1.4.0.20 pkgsrc-2017Q1-base:1.4 pkgsrc-2016Q4:1.4.0.18 pkgsrc-2016Q4-base:1.4 pkgsrc-2016Q3:1.4.0.16 pkgsrc-2016Q3-base:1.4 pkgsrc-2016Q2:1.4.0.14 pkgsrc-2016Q2-base:1.4 pkgsrc-2016Q1:1.4.0.12 pkgsrc-2016Q1-base:1.4 pkgsrc-2015Q4:1.4.0.10 pkgsrc-2015Q4-base:1.4 pkgsrc-2015Q3:1.4.0.8 pkgsrc-2015Q3-base:1.4 pkgsrc-2015Q2:1.4.0.6 pkgsrc-2015Q2-base:1.4 pkgsrc-2015Q1:1.4.0.4 pkgsrc-2015Q1-base:1.4 pkgsrc-2014Q4:1.4.0.2 pkgsrc-2014Q4-base:1.4 pkgsrc-2014Q3:1.3.0.70 pkgsrc-2014Q3-base:1.3 pkgsrc-2014Q2:1.3.0.68 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.66 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.64 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.62 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.60 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.3.0.58 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.56 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.3.0.54 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.3.0.52 pkgsrc-2012Q2-base:1.3 pkgsrc-2012Q1:1.3.0.50 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.48 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.46 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.44 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.42 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.40 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.3.0.38 pkgsrc-2010Q3-base:1.3 pkgsrc-2010Q2:1.3.0.36 pkgsrc-2010Q2-base:1.3 pkgsrc-2010Q1:1.3.0.34 pkgsrc-2010Q1-base:1.3 pkgsrc-2009Q4:1.3.0.32 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q3:1.3.0.30 pkgsrc-2009Q3-base:1.3 pkgsrc-2009Q2:1.3.0.28 pkgsrc-2009Q2-base:1.3 pkgsrc-2009Q1:1.3.0.26 pkgsrc-2009Q1-base:1.3 pkgsrc-2008Q4:1.3.0.24 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.22 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.20 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.18 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.16 pkgsrc-2008Q1:1.3.0.14 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.12 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.10 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.8 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.6 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.4 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.2 pkgsrc-2006Q3-base:1.3 pkgsrc-20060805:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.4 date 2014.12.15.11.35.42; author mef; state Exp; branches; next 1.3; commitid ZKDPe5VMWcGL382y; 1.3 date 2006.09.17.01.25.18; author christos; state Exp; branches; next 1.2; 1.2 date 2006.08.06.23.10.30; author wiz; state Exp; branches; next 1.1; 1.1 date 2006.08.05.19.53.26; author wiz; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2006.08.05.19.53.26; author wiz; state Exp; branches; next ; desc @@ 1.4 log @(pkgsrc) - Add two patches, to avoid error: incompatible types when assigning to type '__off_t' from type 'fpos_t' fp_->_offset = u.f; - Remove one patch patch-af, which had a comment, not necessary for now " also look in *.mk files as makefiles. bump pkg revision." (upstream) - Update 4.2 to 4.6 ---------------------- * Noteworthy changes in release 4.6 (2012-02-03) [stable] ** Bug fixes - lid -L no longer mishandles open-ended ranges like "..2" and "2.." - lid's -d, -o and -x options now work properly * Noteworthy changes in release 4.5 (2010-06-17) [stable] * Noteworthy changes in release 4.4 (2009-10-30) [beta] ------------ ** New features mkid and xtokid accept a new option --files0-from=FILE, to make them process only the files named in FILE. FILE must contain a list of NUL-terminated file names. ** Bug fixes mkid and xtokid now accept language specific options via the command line. * Noteworthy changes in release 4.3.92 (2008-10-18) [beta] -------------- ** Bug fixes fid: avoid a buffer overrun handle failed allocation, e.g., by strdup avoid potential realloc overflow mkid: avoid an infloop on some .el files all programs: detect write error on stdout ** Miscellaneous improvements revamp code and infrastructure, bringing it closer to coreutils' standards add automatically-generated man pages mkid recognize more suffixes: .ac, .mk, .bz2, .lzma. idutils is now licensed under the General Public License version 3 or later (GPLv3+). @ text @$NetBSD: patch-aj,v 1.3 2006/09/17 01:25:18 christos Exp $ --- src/lid.c.orig 2012-01-31 21:22:05.000000000 +0900 +++ src/lid.c 2014-11-20 23:12:39.000000000 +0900 @@@@ -32,7 +32,6 @@@@ #include #include #include -#include #include #include #include @@@@ -562,10 +561,11 @@@@ report_filenames (char const *name, stru static void report_grep (char const *name, struct file_link **flinkv) { - char line[1<<020]; + char *line = xmalloc(BUFSIZ); + size_t line_len = BUFSIZ; char const *pattern = 0; regex_t compiled; - char *file_name = alloca (PATH_MAX); + char file_name[PATH_MAX]; if (key_style == ks_pattern) { @@@@ -597,8 +597,17 @@@@ report_grep (char const *name, struct fi continue; } - while (fgets (line + 1, sizeof (line) - 1, source_FILE)) + while (fgets (line + 1, line_len - 1, source_FILE)) { + size_t len; + while ((len = strlen(line)) == line_len - 1 && + line[line_len - 2] != '\n') + { + line = xrealloc(line, line_len + BUFSIZ); + line_len += BUFSIZ; + if (fgets(line + len, BUFSIZ, source_FILE) == NULL) + break; + } line_number++; if (pattern) { @@@@ -614,6 +623,7 @@@@ report_grep (char const *name, struct fi } fclose (source_FILE); } + free(line); } static char ** @@@@ -826,7 +836,7 @@@@ search_flinkv (struct file_link **flinkv { char pattern[BUFSIZ]; unsigned int count; - char *file_name = alloca (PATH_MAX); + char file_name[PATH_MAX]; char *eol; if (fgets (pattern, sizeof (pattern), stdin) == 0) @@@@ -1305,7 +1315,7 @@@@ word_match (char const *name_0, char con continue; } /* march down both strings as long as we match */ - while (*++name == *++line) + while (*name != '\0' && *++name == *++line) ; /* is this the end of `name', is there a word delimiter ?? */ if (*name == '\0' && !IS_ALNUM (*line)) @ 1.3 log @fix a bogus sizeof (from uwe) @ text @d1 1 a1 1 $NetBSD: patch-aj,v 1.2 2006/08/06 23:10:30 wiz Exp $ d3 3 a5 3 --- src/lid.c.orig 2006-07-21 22:43:25.000000000 -0400 +++ src/lid.c 2006-09-16 21:23:15.000000000 -0400 @@@@ -31,7 +31,6 @@@@ d13 2 a14 2 @@@@ -538,10 +537,11 @@@@ void d27 1 a27 1 @@@@ -573,8 +573,17 @@@@ d46 1 a46 1 @@@@ -589,6 +598,7 @@@@ d54 1 a54 1 @@@@ -800,7 +810,7 @@@@ d63 1 a63 1 @@@@ -1368,7 +1378,7 @@@@ @ 1.2 log @Update to 4.2: Version 4.2 - August 5, 2006, by Claudio Fontana * Bugfix release @ text @d1 1 a1 1 $NetBSD: patch-aj,v 1.1.1.1 2006/08/05 19:53:26 wiz Exp $ d3 2 a4 2 --- src/lid.c.orig 2006-07-22 02:43:25.000000000 +0000 +++ src/lid.c d13 1 a13 1 @@@@ -538,10 +537,11 @@@@ report_filenames (char const *name, stru d27 3 a29 1 @@@@ -575,6 +575,15 @@@@ report_grep (char const *name, struct fi d31 2 a32 1 while (fgets (line + 1, sizeof (line) - 1, source_FILE)) d46 1 a46 1 @@@@ -589,6 +598,7 @@@@ report_grep (char const *name, struct fi d54 1 a54 1 @@@@ -800,7 +810,7 @@@@ search_flinkv (struct file_link **flinkv d63 1 a63 1 @@@@ -1368,7 +1378,7 @@@@ word_match (char const *name_0, char con @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD: patch-aj,v 1.2 2006/08/04 19:23:39 christos Exp $ d3 2 a4 2 --- src/lid.c.orig 2006-03-05 05:23:56.000000000 -0500 +++ src/lid.c 2006-08-04 14:50:44.415180548 -0400 d13 1 a13 1 @@@@ -538,10 +537,11 @@@@ d27 1 a27 1 @@@@ -575,6 +575,15 @@@@ d43 1 a43 1 @@@@ -589,6 +598,7 @@@@ d50 2 a51 2 void @@@@ -765,7 +775,7 @@@@ d60 1 a60 1 @@@@ -1333,7 +1343,7 @@@@ @ 1.1.1.1 log @Re-import devel/id-utils under its new name, idutils. @ text @@