Commit Graph

  • 78bc0d8366 (snprintf): memcpy LEN bytes, not SIZE - 1, when LEN is smaller than SIZE. Suggested by Bruno Haible. Also, help the compiler to keep LEN in a register. Paul Eggert 2006-08-11 17:41:11 +00:00
  • 9236b6befc * tests/ls/stat-vs-dirent: Too many (losing) systems trigger the failure that this test checks for (stat/dirent inode mismatch at a mount point), so continue to give a diagnostic about the failure, but don't actually count it as a failure. Jim Meyering 2006-08-11 08:40:11 +00:00
  • cfbf64e087 Undo latest change; I was confused about gettext versus gcc. Paul Eggert 2006-08-10 22:53:24 +00:00
  • 16d5b9133a Undo latest change; I was confused about xgettext versus gcc. Paul Eggert 2006-08-10 22:52:57 +00:00
  • c84d9ff0d1 Adjust some files for gettext 0.15. Paul Eggert 2006-08-10 22:51:06 +00:00
  • 9d302e0729 Import from gettext 0.15. Paul Eggert 2006-08-10 22:50:40 +00:00
  • fa2b1fe3bc (XGETTEXT_OPTIONS): Add pass-c-format flags for _ and N_, so that we get format checking even when --enable-nls. Add c-format flags for error, error_at_line, asprintf, vasprintf, asnprintf, vasnprintf, wrapf. (USE_MSGCTXT): New macro. Paul Eggert 2006-08-10 22:50:17 +00:00
  • ead8494d04 (my-distcheck): Don't bother with --disable-nls, as it shouldn't be needed with gettext 0.15. Paul Eggert 2006-08-10 22:49:50 +00:00
  • 023d6ad752 (AM_GNU_GETTEXT_VERSION): Update from 0.13.1 to 0.15. Paul Eggert 2006-08-10 22:49:26 +00:00
  • 8397326569 Import from gettext 0.15 Paul Eggert 2006-08-10 22:49:06 +00:00
  • f073139b52 (struct control): Remove fastmap member. (extract_regexp): Allocate fastmap separately, since otherwise it might move due to a realloc. Paul Eggert 2006-08-10 20:53:32 +00:00
  • 4a16cc52e0 Import regex changes from libc via gnulib. Paul Eggert 2006-08-10 20:49:28 +00:00
  • 037836e29f Update cycle-check from gnulib. Paul Eggert 2006-08-10 19:26:39 +00:00
  • 2869cbffcf Accommodate new getaddrinfo implementation in gnulib. (gl_PREREQ): Require gl_FUNC_SNPRINTF, gl_GETADDRINFO, gl_HEADER_ARPA_INET, gl_HEADER_NETINET_IN, gl_HEADER_SYS_SOCKET, gl_INET_NTOP, gl_TYPE_SOCKEN_T. Paul Eggert 2006-08-10 19:10:52 +00:00
  • 9afbf11b76 Accommodate new getaddrinfo implementation in gnulib. (libcoreutils_a_SOURCES): Add inet_ntop.h, snprintf.h. (MOSTLYCLEANDIRS): New macro. (BUILT_SOURCES): Add $(ARPA_INET_H), $(SYS_SOCKET_H), $(NETINET_IN_H). (arpa/inet.h, netinet/in.h, sys/socket.h): New rules. (MOSTLYCLEANFILES): Add arpa/inet.h, arpa/inet.h-t, netinet/in.h, netinet/in.h-t, sys/socket.h, sys/socket.h-t. (EXTRA_DIST): Add socket_.h. Paul Eggert 2006-08-10 19:10:26 +00:00
  • ffafcd2998 Import from gnulib, to support new getaddrinfo implementation of gnulib. Paul Eggert 2006-08-10 19:09:33 +00:00
  • 01dddfef2a Add snprintf.h, socket_.h. Paul Eggert 2006-08-10 19:08:58 +00:00
  • db7ffe5582 * tests/ls/stat-dtype: If "." is tmpfs, skip this test unless uname -s reports "Linux". This avoids a failure on Solaris 10's tmpfs. Redirect both stdout and stderr of df invocations. Jim Meyering 2006-08-10 09:22:33 +00:00
  • 6d1d2c0068 * src/dircolors.hin: Add a TERM directive for each of the following: ansi, color-xterm, gnome, konsole, kterm, rxvt-cygwin, rxvt-cygwin-native, screen.linux, xterm-256color. Sort the TERM directives. From Mike Frysinger. Jim Meyering 2006-08-10 08:50:37 +00:00
  • 407ff38d94 add a comment Jim Meyering 2006-08-10 08:25:03 +00:00
  • ade68b234a Regenerate. Paul Eggert 2006-08-09 23:46:10 +00:00
  • 8c0eb21023 Regenerate. Paul Eggert 2006-08-09 23:44:56 +00:00
  • decc2e1f87 Sync from gnulib. Paul Eggert 2006-08-09 23:44:30 +00:00
  • 93f90065f3 Sync from gnulib. Paul Eggert 2006-08-09 23:42:26 +00:00
  • d24265f965 Warn about oflag=append without conv=notrunc. Paul Eggert 2006-08-09 21:16:28 +00:00
  • 433a1eac7f Add mlterm, rxvt-unicode; this fixes Debian bug 317503. Paul Eggert 2006-08-09 20:56:15 +00:00
  • acaeed035b Regenerate. Paul Eggert 2006-08-09 20:24:38 +00:00
  • 4e9733c2e1 Regenerate. Paul Eggert 2006-08-09 20:23:36 +00:00
  • 4cf3358407 Add shuf. Paul Eggert 2006-08-09 20:23:07 +00:00
  • 15c54c0b83 * LINGUAS: Add ro, sr, uk, wa. * ro.po, sr.po, uk,po, wa.po: New files. Regenerate other translations. Paul Eggert 2006-08-09 20:11:12 +00:00
  • 87bfb896c6 Remove the po-update procedure; it doesn't work with the new repository on http://www.iro.umontreal.ca/. For now I guess we'll have to fix things by hand. (do-po-update, po-update): Remove. All references removed. Paul Eggert 2006-08-09 20:06:14 +00:00
  • 4ab47a295f Fix too-long line in 2006-08-08 checkin, and an encoding error in 2006-07-19 checkin. Paul Eggert 2006-08-09 20:05:18 +00:00
  • adcb60e9d8 (my-distcheck): Compile with -Wpointer-arith to detect this sort of problem automatically in the future. Paul Eggert 2006-08-09 18:08:06 +00:00
  • b1a2656bdb (next_line): New function. (read_input): Use it, to avoid relying on GCC-specific behavior with void * arithmetic. Paul Eggert 2006-08-09 18:07:43 +00:00
  • a5e7cc0811 Add a compile-time check to ensure that filetype and filetype_letter have the same number of elements. Jim Meyering 2006-08-09 09:45:17 +00:00
  • ff7f318ae1 Remove use of --seed=S. Jim Meyering 2006-08-09 08:24:37 +00:00
  • aa4f6c56c7 Include <config.h>. Jim Meyering 2006-08-09 08:13:36 +00:00
  • a402cb33ba Add lib/randread.c, lib/xmemxfrm.c, and src/shuf.c. Jim Meyering 2006-08-09 08:12:27 +00:00
  • 5e56a8e861 Fix typo in latest changelog entry: restrict.m4 wasn't logged right. Paul Eggert 2006-08-08 22:41:15 +00:00
  • dc64059426 Add shuf, better random number generation, and fix sort -R in funny locales. Paul Eggert 2006-08-08 22:28:00 +00:00
  • cd321e4660 Remove, since we no longer need gl_RESTRICT. Paul Eggert 2006-08-08 22:26:44 +00:00
  • 7c4b2e2a5c Remove; its contents are now in ../lib/rand-isaac.c. Paul Eggert 2006-08-08 22:23:11 +00:00
  • 73742c2566 New file, introduced for shuf, sort -R, and/or shred. Paul Eggert 2006-08-08 22:22:47 +00:00
  • f2f8ea1001 (TESTS): Add shuf. Paul Eggert 2006-08-08 22:20:59 +00:00
  • f8abf03c3f Use new random-number interface rather than rand-isaac.c. 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. Paul Eggert 2006-08-08 22:20:12 +00:00
  • 65533e1b09 Use new random-number interface rather than rand-isaac.c. 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. Paul Eggert 2006-08-08 22:19:39 +00:00
  • 129e7756b9 (bin_PROGRAMS): Add shuf. (EXTRA_DIST): Remove rand-isaac.c. (shuf_LDADD): New macro. Paul Eggert 2006-08-08 22:19:03 +00:00
  • 8cfbf68782 (dist_man_MANS): Add shuf.1. (shuf.1): New dependency. Paul Eggert 2006-08-08 22:18:39 +00:00
  • c678c40671 Add shuf.1. Paul Eggert 2006-08-08 22:18:20 +00:00
  • 36ed13bc2f (gl_TIME_R): Use AC_C_RESTRICT, not gl_C_RESTRICT, since we assume recent Autoconf. Paul Eggert 2006-08-08 22:17:56 +00:00
  • 14f6099f6e (gl_PREREQ_REGEX): Use AC_C_RESTRICT, not gl_C_RESTRICT, since we assume recent Autoconf. Paul Eggert 2006-08-08 22:17:20 +00:00
  • 2409478e37 (gl_PREREQ): Require gl_MEMXFRM, gl_RANDINT, gl_RANDPERM, gl_RANDREAD. Paul Eggert 2006-08-08 22:16:51 +00:00
  • a7537e5f07 (gl_PREREQ_GETADDRINFO): Use AC_C_RESTRICT, not gl_C_RESTRICT, since we assume recent Autoconf. Paul Eggert 2006-08-08 22:16:18 +00:00
  • 7e5863463c (libcoreutils_a_SOURCES): Add xmemxfrm.c, xmemxfrm.h. Paul Eggert 2006-08-08 22:12:21 +00:00
  • 0d98074403 (shuf invocation, Random sources): New sections. (Operating on sorted files): Add shuf. (sort invocation, shred invocation): New option --random-source. (sort invocation): Fix typo: -R -> -r. Paul Eggert 2006-08-08 22:11:49 +00:00
  • f0992c673c Add shuf. Paul Eggert 2006-08-08 22:11:18 +00:00
  • 6767712f7e Add shuf. Mention new --random-source option for shred and sort. Move "sort +1 -2" notice to the appropriate section, and clarify its role with respect to POSIXLY_CORRECT. Paul Eggert 2006-08-08 22:10:39 +00:00
  • d578d8a8be Add shuf. Paul Eggert 2006-08-08 22:10:05 +00:00
  • 528fe6e504 (set_author): Preserve the st_author field via the file descriptor dest_desc. Paul Eggert 2006-07-29 17:13:28 +00:00
  • aa24517b5f chmod 0755 DIR and chmod 755 DIR are now equivalent. Paul Eggert 2006-07-28 07:28:56 +00:00
  • 6eb119a91e chmod now preserves setuid and setgid bits on directories if you use a numeric mode with them clear, e.g., "chmod 755 DIR". Paul Eggert 2006-07-28 07:27:56 +00:00
  • e7583d05d3 Clear setuid and setuid bits on directory, in case the build directory has them set and they're inherited. Paul Eggert 2006-07-28 07:27:20 +00:00
  • 1e7c68d3fc Use symbolic mode so that we clear setgid bit more reliably on directories. Paul Eggert 2006-07-28 07:26:39 +00:00
  • aaa8e4f378 Remove obsolete comment about masks. Paul Eggert 2006-07-28 07:26:06 +00:00
  • fa78395b2a (mode_compile): Numeric modes now affect setuid and setgid on directories only if they set these bits. Paul Eggert 2006-07-28 07:25:44 +00:00
  • b8bbece57a (Changing Special Mode Bits): Clarify u+s versus 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. Paul Eggert 2006-07-28 07:21:03 +00:00
  • 82e0ce4d8b (install invocation, mkdir invocation): Add cross-references to Directory Setuid and Setgid. (install-invocation): The default mode is no longer equivalent to 755. Paul Eggert 2006-07-28 07:20:28 +00:00
  • 667f225c08 * src/chgrp.c (usage): Use correct grammar in description of the --reference option * src/chown.c (usage): Likewise. Jim Meyering 2006-07-27 09:11:08 +00:00
  • 256d18e81b * src/copy.c (set_author) [HAVE_STRUCT_STAT_ST_AUTHOR]: Correctly access SRC_SB's element ST_AUTHOR. Jim Meyering 2006-07-26 14:43:00 +00:00
  • 2f418ef97d * tests/ls/stat-failed: Adapt to match new expected output. From Paul Eggert. Jim Meyering 2006-07-26 14:35:19 +00:00
  • d2c6ae7fbc * src/ls.c (print_color_indicator): Test for S_IFREG first, rather 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. Jim Meyering 2006-07-26 14:06:57 +00:00
  • 2465b478fd Checking in a change from Paul. Jim Meyering 2006-07-26 13:47:41 +00:00
  • efb40f6b0f Prepare for the above change. * src/ls.c [struct fileinfo] (stat_ok): Rename from stat_failed, and adjust uses. From a patch by Paul Eggert. Jim Meyering 2006-07-26 13:33:07 +00:00
  • 03d872537a * src/ls.c: Correct indentation/formatting in a few places. Jim Meyering 2006-07-26 09:52:43 +00:00
  • b7f9a7ed05 Clarify the "chmod 0500" news, and correct the vague statements about compatibility with BSD. Paul Eggert 2006-07-25 18:38:58 +00:00
  • 97e1e9019d Use "chmod 0500" rather than "chmod 500". Paul Eggert 2006-07-25 18:38:25 +00:00
  • 5637c1634f (Directory Setuid and Setgid): Explain that this is a GNU extension, and that other systems behave differently here. Paul Eggert 2006-07-25 18:37:55 +00:00
  • 0b34021d6d * src/ls.c (gobble_file): When handling a stat-failed entry, print the entry name not the absolute_name -- to be consistent with the usual case. * tests/ls/stat-failed: Update accordingly. Jim Meyering 2006-07-25 16:35:59 +00:00
  • 995cbf7830 * tests/ls-2/tests (no-a-isdir-b): Update to reflect addition of "cannot access " to diagnostic. Jim Meyering 2006-07-25 15:40:02 +00:00
  • 2a287ee69b *** empty log message *** Jim Meyering 2006-07-25 15:36:07 +00:00
  • fd991bcc57 * src/dircolors.hin: Mention that ORPHAN refers not just to dangling symlinks. Jim Meyering 2006-07-25 15:34:58 +00:00
  • ef79e4ea3b * src/dircolors.hin: Mention that ORPHAN refers not just to dangling symlinks. Jim Meyering 2006-07-25 15:33:57 +00:00
  • c04a374bb0 Get --dired offsets right when handling stat-failed entries. * 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. Jim Meyering 2006-07-25 15:30:27 +00:00
  • 5a06d062c7 * src/ls.c (gobble_file) [USE_ACL]: Don't use-uninitialized the have_acl member. That would happen for a directory with both a non-stat'able entry and one with an ACL. Jim Meyering 2006-07-25 15:25:37 +00:00
  • 3a208b1404 * src/ls.c (gobble_file): Make it so failure to stat a 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. Jim Meyering 2006-07-25 15:23:59 +00:00
  • a321dfb09d * src/ls.c: Declare stat_failed to be "bool", not "int" everywhere. Jim Meyering 2006-07-25 15:13:56 +00:00
  • 1827b515aa * src/ls.c [enum filetype] (command_line): Remove member. Not needed. Replace all occurrences of "type == command_line" with the equivalent, "command_line_arg". Jim Meyering 2006-07-25 15:12:26 +00:00
  • ccb1883fcd * src/ls.c: Apply the stat-failed parts of Red Hat's coreutils-selinux.patch. From Ulrich Drepper. This makes it so files not mentioned on the command line (e.g., names read from a directory that *is* mentioned on the command line) for which stat fails are still listed. With --color, such files are colored just like ORPHANs (aka dangling symlinks). Jim Meyering 2006-07-25 15:09:56 +00:00
  • 427a636ae3 . Jim Meyering 2006-07-25 14:34:39 +00:00
  • 0ff7cb7f69 vc-list-files: Handle git repositories, too. Jim Meyering 2006-07-25 14:10:12 +00:00
  • 627f9b7fb1 * src/df.c (n_valid_args): Declare global to be static. Jim Meyering 2006-07-25 14:06:21 +00:00
  • f2641bb9f7 Skip this test on reiserfs, since that file system lacks d_type support. Jim Meyering 2006-07-24 14:02:35 +00:00
  • 7192610528 Update to reflect recent changes to coreutils.texi. Paul Eggert 2006-07-23 01:27:27 +00:00
  • bdcc26e24b (Mode Structure, Symbolic Modes, Numeric Modes): Be more careful about distinguishing file mode bits from permissions bits, and about execute versus search permission. The FreeBSD command is chflags, not chrflags. Paul Eggert 2006-07-23 01:26:56 +00:00
  • a29aa4faa6 (Mode Structure): The restricted deletion flag restricts only unprivileged users. Paul Eggert 2006-07-22 23:42:19 +00:00
  • e27208b635 (What information is listed): Clarify that the restricted deletion flag is another name for the sticky bit. Paul Eggert 2006-07-22 23:41:43 +00:00
  • e718c61a7c Split closeout into close-stream and closeout. Paul Eggert 2006-07-22 22:28:53 +00:00
  • 554d94c647 (close_stdout): Use new function close_stream. Paul Eggert 2006-07-22 22:27:17 +00:00
  • 2df2295d68 Initial revision. Paul Eggert 2006-07-22 22:26:04 +00:00
  • 0971f7f44a (gl_PREREQ): Require gl_CLOSE_STREAM. Paul Eggert 2006-07-22 22:23:43 +00:00