summaryrefslogtreecommitdiffstats
path: root/libidu/idread.c
Commit message (Collapse)AuthorAgeFilesLines
* maint: update copyright yearsJim Meyering2014-02-131-1/+1
|
* maint: update all copyright year number rangesJim Meyering2012-01-011-1/+1
| | | | Run "make update-copyright".
* maint: update copyright year ranges to include 2011Jim Meyering2011-03-201-1/+1
| | | | Run "make update-copyright".
* maint: update all FSF copyright year lists to include 2010Jim Meyering2010-01-011-1/+1
| | | | | | Use this command: git ls-files |grep -vE '^(\..*|COPYING|gnulib)$' |xargs \ env UPDATE_COPYRIGHT_USE_INTERVALS=1 build-aux/update-copyright
* build: accommodate new syntax-check testJim Meyering2009-10-301-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | Use EXIT_FAILURE and EXIT_SUCCESS, not 1 and 0. Apply these commands: perl -pi -e 's/\berror \(1,/error (EXIT_FAILURE,/' \ $(git grep -l '\<error (1,') perl -pi -e 's/\bexit \(1\)/exit (EXIT_FAILURE)/' \ $(git grep -l '\<exit (1)') perl -pi -e 's/\bexit \(0\)/exit (EXIT_SUCCESS)/' \ $(git grep -l '\<exit (0)') * libidu/idread.c (read_id_file, maybe_read_id_file, io_read): * libidu/idu-hash.c (hash_init): * libidu/idwrite.c (io_write): * libidu/scanners.c (parse_language_map, parse_language_map_file): (read_language_map_file): * libidu/walker.c (include_languages, exclude_languages): (get_current_dir_link): * src/fid.c (usage, help_me, main): * src/fnid.c (usage, help_me, main): * src/lid.c (usage, help_me, main, report_grep, report_edit): (query_regexp): * src/mkid.c (main, assert_writeable, write_id_file): * src/xtokid.c (help_me):
* maint: update copyright year lists to include 2009Jim Meyering2009-08-151-1/+1
|
* rename hash.? to idu-hash.? to avoid conflict with gnulib's hash.hJim Meyering2009-08-151-1/+1
| | | | | | | | | | | | | Now that gnulib's exclude module uses gnulib's hash module, which includes a hash.h file, idutils' use of a hash.h file conflicted. Rename the one here in idutils: * libidu/idu-hash.c: Rename from hash.c. * libidu/idu-hash.h: Rename from hash.h. * libidu/idfile.h: Reflect renaming. * libidu/idread.c: Likewise. * libidu/idwrite.c: Likewise. * src/mkid.c: Likewise. * libidu/Makefile.am: Likewise.
* build: suppress warnings about ignored return value from fread/fwriteJim Meyering2009-04-301-3/+6
| | | | | | | * libidu/idwrite.c: include "ignore-value.h". (io_write): Ignore fwrite return value. * libidu/idread.c: Likewise for fread. * bootstrap.conf (gnulib_modules): Add ignore-value.
* build: remove unused macrosJim Meyering2009-04-301-4/+1
| | | | | * libidu/idread.c (TOK_COUNT_ADDR): Remove unused macro. (TOK_HITS_ADDR): Likewise.
* make more functions staticJim Meyering2008-05-171-2/+2
|
* fid: avoid buffer overrun.Jim Meyering2008-01-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | * libidu/idread.c (deserialize_file_links): Fix typo (or think-o). Here's what valgrind reported: Invalid write of size 4 at 0x804A15A: deserialize_file_links (idread.c:132) by 0x8049DEE: maybe_read_id_file (idread.c:74) by 0x8049C64: read_id_file (idread.c:46) by 0x80492FB: main (fid.c:170) Address 0x41EB944 is 628 bytes inside a block of size 629 alloc'd at 0x4022765: malloc (vg_replace_malloc.c:149) by 0x80516BC: xnmalloc_inline (xmalloc.c:49) by 0x80516EE: xmalloc (xmalloc.c:65) by 0x8049E2F: deserialize_file_links (idread.c:87) by 0x8049DEE: maybe_read_id_file (idread.c:74) by 0x8049C64: read_id_file (idread.c:46) by 0x80492FB: main (fid.c:170) Signed-off-by: Jim Meyering <meyering@redhat.com>
* License upgrade to "GPL-3 or later"Pedro J. Ruiz Lopez2007-08-171-4/+3
|
* * started to address portability problems in the id-utils-4.0 releaseClaudio Fontana2005-12-271-3/+3
|
* *** empty log message ***Claudio Fontana2005-11-011-6/+10
|
* * libidu/idread.c (maybe_read_id_file): Add `b' for binaryGreg McGary1999-04-091-2/+2
| | | | | to fopen mode string. [From tbisp@uswest.net] * src/lid.c (report_grep): Change name of gid_FILE to source_FILE.
* Initial revisionGreg McGary1997-04-181-0/+280