summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2003-10-15Include "fts_.h".Jim Meyering
(WRITTEN_BY): Add my name. (MAXUID, MAXGID): Remove definitions. Use GID_T_MAX instead of the latter. (usage): Update. (main): Handle new options. Call new function, chown_files rather than change_file_owner.
2003-10-15chown now accepts POSIX-mandated -H, -L, -P options and usesJim Meyering
fts to perform a directory traversal when -R is specified. Before, it used explicit recursion, and as such was limited by the user's stack size to handling hierarchies no deeper than about 30,000 levels. Include "userspec.h" and "fts_.h". (WRITTEN_BY): Add my name. (getpwnam, getgrnam, getgrgid): Remove declarations. (endpwent): Remove definition. (usage): Update (main): Handle new options. Call new function, chown_files rather than change_file_owner.
2003-10-15*** empty log message ***Jim Meyering
2003-10-15Include "userspec.h".Jim Meyering
2003-10-15*** empty log message ***Jim Meyering
2003-10-15(libfetish_a_SOURCES): Add userspec.h.Jim Meyering
2003-10-15*** empty log message ***Jim Meyering
2003-10-15[enum Dereference_symlink]: Remove declaration.Jim Meyering
[struct Chown_option] (recurse, force_silent): Change type to `bool'. [struct Chown_option] (dereference): Remove member with ambiguous name. [struct Chown_option] (affect_symlink_referent): New member. (chown_files): New prototype.
2003-10-15Rewrite to iterate through hierarchies using fts rather thanJim Meyering
via explicit recursion. Include "fts_.h" (change_file_owner): Rewrite to use FTS* and FTSENT* and to operate on a single file at a time. (chown_files): New function.
2003-10-15*** empty log message ***Jim Meyering
2003-10-15*** empty log message ***Jim Meyering
2003-10-15(ln invocation): Note that --directory, -d, -FJim Meyering
probably won't work even for superuser.
2003-10-15(usage): Clarify that --directory, -d, -F probably won'tJim Meyering
work even for superuser. Suggestion from Dan Jacobson.
2003-10-15*** empty log message ***Jim Meyering
2003-10-15Sync with gnulib.Jim Meyering
2003-10-15Sync with gnulib.Jim Meyering
2003-10-15*** empty log message ***Jim Meyering
2003-10-15(parse_field_count): Handle the case where overflowJim Meyering
and invalid suffix char are both reported.
2003-10-14(decode_switches) [TIOCGWINSZ]: Comment out theJim Meyering
warning-inducing test, ws.ws_col <= SIZE_MAX, since it was always true on Linux.
2003-10-14*** empty log message ***Jim Meyering
2003-10-14.Jim Meyering
2003-10-14.Jim Meyering
2003-10-14*** empty log message ***Jim Meyering
2003-10-14*** empty log message ***Jim Meyering
2003-10-14(TESTS): Add posix-H.Jim Meyering
2003-10-14add a blank lineJim Meyering
2003-10-14*** empty log message ***Jim Meyering
2003-10-14Fix to avoid a denial-of-service attack if the display width isJim Meyering
enormous. Also, clean up the code a bit by removing duplicate code. (init_column_info): Remove forward decl; no longer needed. (calculate_columns): New function, that contains code that used to be common to print_many_per_line and print_horizontal. (print_many_per_line, print_horizontal): Use it. (decode_switches): Set max_idx here, not in calculate_columns. (print_current_files): Don't call init_column_info; calculate_columns now does that. (init_column_info): Don't allocate a lot more space than is needed to represent the current set of files. Allocate all the new size_t cells in one call to xnmalloc, rather than a row at a time.
2003-10-14*** empty log message ***Jim Meyering
2003-10-14*** empty log message ***Jim Meyering
2003-10-13*** empty log message ***Jim Meyering
2003-10-13(init_column_info): Add another FIXME comment.Jim Meyering
2003-10-13*** empty log message ***Jim Meyering
2003-10-13*** empty log message ***Jim Meyering
2003-10-13*** empty log message ***Jim Meyering
2003-10-13Import latest version from gnulib.Jim Meyering
2003-10-13*** empty log message ***Jim Meyering
2003-10-13Import latest version from gnulib.Jim Meyering
2003-10-13Import latest version from gnulib.Jim Meyering
2003-10-13Import latest version from gnulib.Jim Meyering
2003-10-13(struct bin_str.len, length_of_file_name_and_frills, indent,Jim Meyering
nfiles, files_index, tabsize, line_length, struct column_info.line_len, struct column_info.col_arr[0], max_idx): Now size_t, not int. (get_funky_string): Return bool indicating success, instead of a negative count to indicate failure. Store number of columns through new parameter OUTPUT_COUNT; that way, they can never go negative. Change equals_end from int to bool. All uses changed. (struct column_info.valid_len): Now bool, not int. All uses changed. (dired_dump_obstack, get_funky_string, clear_files, extract_dirs_from_files, print_current_files, print_many_per_line, print_horizontal, init_column_info, put_indicator, length_of_file_name_and_frills, print_with_commas): Use size_t, not int, for local variables that count sizes. (decode_switches): Decode sizes using xstrtoul, not xstrtol. Check for TIOCGWINSZ returing negative values (or values greater than SIZE_MAX!). (visit_dir, main, parse_ls_color, queue_directory, add_ignore_pattern, init_column_info): Use xmalloc and xnmalloc, not XMALLOC. (gobble_file): Use xnrealloc, not XREALLOC. (print_color_indicator): Remove now-unnecessary cast to size_t.
2003-10-13(print_many_per_line): Add FIXME comment.Jim Meyering
2003-10-13Change wording of diagnostic to match latest du.c.Jim Meyering
2003-10-13*** empty log message ***Jim Meyering
2003-10-13*** empty log message ***Jim Meyering
2003-10-13Remove from CVS; assume that peopleJim Meyering
brave enough to check coreutils out from CVS can rebuild it.
2003-10-12*** empty log message ***Jim Meyering
2003-10-12New options: --preserve-root and --no-preserve-root.Jim Meyering
(change_file_mode): Honor new option. (change_file_mode): Strip trailing slashes on directory argument passed to change_dir_mode. (get_root_dev_ino): New function. (main): Initialize global, root_dev_ino.
2003-10-12*** empty log message ***Jim Meyering
2003-10-12(change_file_mode): Don't #ifdef-out a simple use ofJim Meyering
S_ISLNK. The S_IS* macros are guaranteed to be defined via system.h.