summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
1997-08-31(change_file_owner): Call describe_change with a 3-state argument.Jim Meyering
(describe_change): Report whether the operation was successful, a failure, or that the request was a no-op. Before, running `chown --verb bin /' as non-root reported owner of / changed to bin chown: /: Not owner
1997-08-31[!STDC_HEADERS]: Declare malloc.Jim Meyering
1997-08-31(change_file_mode): Call describe_change with a 3-state argument.Jim Meyering
(describe_change): Report whether the operation was successful, a failure, or that the request was a no-op. Before, running `chmod --verb u-r /' as non-root reported mode of / changed to 0355 (-wxr-xr-x) chmod: /: Not owner Reported by Philippe Schnoebelen <phs@hobbes.fing.edu.uy>
1997-08-18(show_date): Don't hang if strftime produces an empty string.Jim Meyering
1997-08-03s/\<_ (/_(/gJim Meyering
1997-08-03indentJim Meyering
1997-08-03.Jim Meyering
1997-07-29Add new option: --reference=FILE.Jim Meyering
1997-07-29Add new option: --reference=FILE.Jim Meyering
1997-07-29(usage): tweak -p descrJim Meyering
1997-07-29Declare pointer parameters const as appropriate.Jim Meyering
1997-07-29(main): New option --preserve-timestamps (-p).Jim Meyering
(install_file_in_file): Change timestamps if requested. (change_timestamps): New function. (usage): Describe --preserve-timestamps. Correct --mode description. From Galen Hazelwood.
1997-07-22(parse_obsolescent_option): #ifdef-out portability warning.Jim Meyering
1997-07-19(checkfp): tweak commentJim Meyering
1997-07-19(checkfp): Print the `disorder' message. Include bothJim Meyering
the number and the contents of the first out-of-order line, in addition to the file name. Change meaning of return value. (check): Don't print disorder message here. Adjust test of checkfp's return value. Feature suggestion from Karl Heuer.
1997-07-16This means that if multiple users are given on the command line, theJim Meyering
error return code is that of the last, so earlier failures can't be detected.
1997-07-16Exit with status from `id' command.Jim Meyering
Don't print `$name : $groups' if id fails. Reported by Austin Donnelly.
1997-07-13remove fixmeJim Meyering
1997-07-13Include xstrtoul.h.Jim Meyering
Remove global variable, unit_size. (atou): Remove now-unused function. (parse_unit): Likewise. (string_to_ull): New function. (head): Take new parameter, count_lines. Use it instead of unit_size. Update callers. (head_file): Likewise. (main): Use string_to_ull, not atou/parse_unit.
1997-07-13Rename lots of `this' locals.Jim Meyering
Make some parameters `const'. (who): Update read_utmp caller. (search_entries): Take additional param: utmp_buf. Update read_utmp caller. (who_am_i): Update read_utmp caller.
1997-07-13(users): Update read_utmp caller.Jim Meyering
1997-07-13(uptime): Update read_utmp caller.Jim Meyering
1997-07-13Add FIXME.Jim Meyering
indent
1997-07-13indentJim Meyering
1997-07-13indentJim Meyering
1997-07-13indentJim Meyering
1997-07-13indentJim Meyering
1997-07-13(uptime): rename users to n_usersJim Meyering
1997-07-13declare xmallocJim Meyering
(users): rename users to n_users
1997-07-13(who): rename users to n_usersJim Meyering
1997-07-13.Jim Meyering
1997-07-13.Jim Meyering
1997-07-13.Jim Meyering
1997-07-13.Jim Meyering
1997-07-12(MAYBE_SET_TZ_UTC0): New macro.Jim Meyering
(set_tz): New function. (batch_convert): If necessary, save the initial value of TZ and for each date in the file, restore it before each call to get_date, then set it to UTC0 before each show_date call. (main): Don't set TZ before calling get_date. Set TZ after get_date call and before show_date call. Reported by Matthew Braun.
1997-07-06declare stpcpyJim Meyering
1997-07-06Add new option: --sort=version (-v).Jim Meyering
1997-07-06(print_long_format): Reflect changes in semantics of getuser, getgroup.Jim Meyering
1997-07-05(parse_obsolescent_option): If POSIXLY_CORRECT is set, giveJim Meyering
a diagnostic and fail when there are two or more non-option arguments.
1997-07-05Redefine/undef getusershell around inclusion of <unistd.h>Jim Meyering
(via system.h) so Cray's int-returning prototype doesn't conflict with our char*-returning one.
1997-07-03(apply_attributes): New function.Jim Meyering
(copy_reg): Use apply_attributes instead of open-coding the pieces. Now, failure to preserve file attributes does not cause mv to change its exit status, and such failures elicit warning diagnostics. This behavior is required by POSIX. Before, failure to preserve ownership due to insufficient access was diagnosed only for root. Prompted by a report from Bengt Martensson.
1997-07-02(STRTOX): Convert function header in macro definitionJim Meyering
to K&R-style. Otherwise, ansi2knr would fail to convert the function definitions to K&R for old style compilers. From Kaveh Ghazi.
1997-06-29(copy): Add FIXME comment.Jim Meyering
1997-06-29(copy_reg): New parameter, SOURCE_STATS.Jim Meyering
(do_move): Update caller. (movefile): Take new boolean parameter, DEST_IS_DIR, to save a stat per moved file when the destination is a directory. (main): Call movefile with additional argument. (strip_trailing_slashes_2): New function. (movefile): Remove trailing slashes from dest. Otherwise, stat ("b/") fails with ENOTDIR on systems including Linux w/libc 2.0.30. Reproduce with `rm -rf a b; mkdir a; touch b; ./mv a b/'. (do_move): Fix misleading comment.
1997-06-29Move the OPENOPTS def from end to beginning of else clause so it's closerJim Meyering
to the one in the then clause.
1997-06-25update from automake-1.2Jim Meyering
1997-06-22Use variable width columns when printing in multi-column mode.Jim Meyering
(init_col_info): New function. (print_current_files): Call init_col_info if format is `many_per_line' or `horizontal'. (print_many_per_line): Calculate optimum column widths. (print_horizontal): Likewise. From Ulrich Drepper.
1997-06-16(eval6): Accept new unary operator, quote.Jim Meyering
From Karl Heuer.
1997-06-16tweak error messageJim Meyering
1997-06-15(init_header) [T_BUF_FMT]: Output the 4-digit year (not theJim Meyering
2-digit abbreviation) in each page header. Reported by Noah Friedman.