summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2006-08-09Add lib/randread.c, lib/xmemxfrm.c, and src/shuf.c.Jim Meyering
2006-08-08Fix typo in latest changelog entry: restrict.m4 wasn't logged right.Paul Eggert
2006-08-08Add shuf, better random number generation, and fix sort -R inPaul Eggert
funny locales.
2006-08-08Remove, since we no longer need gl_RESTRICT.Paul Eggert
2006-08-08Remove; its contents are now in ../lib/rand-isaac.c.Paul Eggert
2006-08-08New file, introduced for shuf, sort -R, and/or shred.Paul Eggert
2006-08-08(TESTS): Add shuf.Paul Eggert
2006-08-08Use new random-number interface rather than rand-isaac.c.Paul Eggert
Don't include rand-isaac.c; include randint.h and randread.h instead. (RANDOM_SOURCE_OPTION): New enum. (long_opts, usage, main): New option --random-source. Include md5.h, randread.h, xmemxfrm.h. (longopts, usage, main): Remove undocumented --seed option; it's now replaced by --random-source. (rand_state, get_hash): Remove. (randread_source): New static var. (random_state, cmp_hashes, compare_random): New functions; they guarantee no collisions in the random hash function. (keycompare): Use compare_random for -R; don't fall back on comparing via memcoll, since compare_random does the right thing.
2006-08-08Use new random-number interface rather than rand-isaac.c.Paul Eggert
Don't include rand-isaac.c; include randint.h and randread.h instead. (RANDOM_SOURCE_OPTION): New enum. (long_opts, usage, main): New option --random-source. (struct irand_state, irand_init, irand32, irand_mod): Remove. All callers changed to use randint interface. (fillrand): Remove. All callers changed to use randread interface. (dopass): Remove dependency on ISAAC buffer size. (genpattern): Don't wipe the random state here. (randint_source): New static var. (clear_random_data): New function. (main): Allocate random source, and arrange to wipe it on exit.
2006-08-08(bin_PROGRAMS): Add shuf.Paul Eggert
(EXTRA_DIST): Remove rand-isaac.c. (shuf_LDADD): New macro.
2006-08-08(dist_man_MANS): Add shuf.1.Paul Eggert
(shuf.1): New dependency.
2006-08-08Add shuf.1.Paul Eggert
2006-08-08(gl_TIME_R): Use AC_C_RESTRICT, notPaul Eggert
gl_C_RESTRICT, since we assume recent Autoconf.
2006-08-08(gl_PREREQ_REGEX): Use AC_C_RESTRICT, not gl_C_RESTRICT, since wePaul Eggert
assume recent Autoconf.
2006-08-08(gl_PREREQ): Require gl_MEMXFRM, gl_RANDINT, gl_RANDPERM,Paul Eggert
gl_RANDREAD.
2006-08-08(gl_PREREQ_GETADDRINFO): Use AC_C_RESTRICT, notPaul Eggert
gl_C_RESTRICT, since we assume recent Autoconf.
2006-08-08(libcoreutils_a_SOURCES): Add xmemxfrm.c, xmemxfrm.h.Paul Eggert
2006-08-08(shuf invocation, Random sources): New sections.Paul Eggert
(Operating on sorted files): Add shuf. (sort invocation, shred invocation): New option --random-source. (sort invocation): Fix typo: -R -> -r.
2006-08-08Add shuf.Paul Eggert
2006-08-08Add shuf. Mention new --random-source option for shred and sort.Paul Eggert
Move "sort +1 -2" notice to the appropriate section, and clarify its role with respect to POSIXLY_CORRECT.
2006-08-08Add shuf.Paul Eggert
2006-07-29(set_author): Preserve the st_author field via thePaul Eggert
file descriptor dest_desc.
2006-07-28chmod 0755 DIR and chmod 755 DIR are now equivalent.Paul Eggert
2006-07-28chmod now preserves setuid and setgid bits on directoriesPaul Eggert
if you use a numeric mode with them clear, e.g., "chmod 755 DIR".
2006-07-28Clear setuid and setuid bits on directory, in case the buildPaul Eggert
directory has them set and they're inherited.
2006-07-28Use symbolic mode so that we clearPaul Eggert
setgid bit more reliably on directories.
2006-07-28Remove obsolete comment about masks.Paul Eggert
2006-07-28(mode_compile): Numeric modes now affect setuid andPaul Eggert
setgid on directories only if they set these bits.
2006-07-28(Changing Special Mode Bits): Clarify u+s versusPaul Eggert
a+s versus +s, and likewise for g+s. (Numeric Modes): Bring back example of 0055 == 55. 4755 no longer clears setgid bit on directories. (Directory Setuid and Setgid): Numeric modes now affect setuid and setgid on directories only if they set these bits. This is so that leading 0 has no effect on numeric modes.
2006-07-28(install invocation, mkdir invocation):Paul Eggert
Add cross-references to Directory Setuid and Setgid. (install-invocation): The default mode is no longer equivalent to 755.
2006-07-27* src/chgrp.c (usage): Use correct grammar in description of the --reference ↵Jim Meyering
option * src/chown.c (usage): Likewise.
2006-07-26* src/copy.c (set_author) [HAVE_STRUCT_STAT_ST_AUTHOR]:Jim Meyering
Correctly access SRC_SB's element ST_AUTHOR.
2006-07-26* tests/ls/stat-failed: Adapt to match new expected output.Jim Meyering
From Paul Eggert.
2006-07-26* src/ls.c (print_color_indicator): Test for S_IFREG first, ratherJim Meyering
than having the code test for all of the other types first. Hoist the set-uid/gid-testing code "up" into this new block. Classify any other type of file (e.g., S_TYPEISSHM, etc.) as C_ORPHAN, not as C_FILE. * doc/coreutils.texi (What information is listed): Mention that missing pieces of information are marked with "?". From Paul Eggert.
2006-07-26Checking in a change from Paul.Jim Meyering
2006-07-25 Paul Eggert <eggert@cs.ucla.edu> * src/ls.c (DT_INIT): Remove. All uses removed. (enum filetype): Use an ordinary enum rather than trying to keep the values in sync with DT_FIFO etc. That way, we don't have to make special assumptions about them. All uses changed. (whiteout): New constant member of enum filetype. (filetype_letter): New constant, for use with enum filetype. (FILETYPE_INDICATORS): New initializer list. (print_dir): Add case for DT_WHT. (gobble_file): If stat fails, don't discard information from readdir; instead, preserve it so it can be printed. (print_long_format): Fall back on readdir result if stat info is not available. Use "?" to denote each unknown mode char, instead of an overall "?", since we now know some of the mode typically. (print_type_indicator): Now that MODE isn't necessarily useful, guard all uses. Now that two blocks in the type-checking tree can set "type = C_FILE", move the suffix-handling code out and down.
2006-07-26Prepare for the above change.Jim Meyering
* src/ls.c [struct fileinfo] (stat_ok): Rename from stat_failed, and adjust uses. From a patch by Paul Eggert.
2006-07-26* src/ls.c: Correct indentation/formatting in a few places.Jim Meyering
2006-07-25Clarify the "chmod 0500" news, and correct the vaguePaul Eggert
statements about compatibility with BSD.
2006-07-25Use "chmod 0500" rather than "chmod 500".Paul Eggert
2006-07-25(Directory Setuid and Setgid): Explain that this is aPaul Eggert
GNU extension, and that other systems behave differently here.
2006-07-25* src/ls.c (gobble_file): When handling a stat-failed entry,Jim Meyering
print the entry name not the absolute_name -- to be consistent with the usual case. * tests/ls/stat-failed: Update accordingly.
2006-07-25* tests/ls-2/tests (no-a-isdir-b): Update to reflect additionJim Meyering
of "cannot access " to diagnostic.
2006-07-25*** empty log message ***Jim Meyering
2006-07-25* src/dircolors.hin: Mention that ORPHAN refers not just to dangling symlinks.Jim Meyering
2006-07-25* src/dircolors.hin: Mention that ORPHAN refers not just to dangling symlinks.Jim Meyering
2006-07-25Get --dired offsets right when handling stat-failed entries.Jim Meyering
* src/ls.c (print_long_format): Be careful to increment P by the appropriate amount, even when inode_number_width and nlink_width are zero. * tests/ls/stat-failed: Test for the above.
2006-07-25* src/ls.c (gobble_file) [USE_ACL]: Don't use-uninitialized theJim Meyering
have_acl member. That would happen for a directory with both a non-stat'able entry and one with an ACL.
2006-07-25* src/ls.c (gobble_file): Make it so failure to stat aJim Meyering
non-command-line file provokes an exit status of 1, not 0. Say "cannot access" rather than "cannot stat". * tests/ls/stat-failed: New file/test, for the above. * tests/ls/Makefile.am (TESTS): Add stat-failed.
2006-07-25* src/ls.c: Declare stat_failed to be "bool", not "int" everywhere.Jim Meyering
2006-07-25* src/ls.c [enum filetype] (command_line): Remove member. Not needed.Jim Meyering
Replace all occurrences of "type == command_line" with the equivalent, "command_line_arg".