summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2000-12-09.Jim Meyering
2000-12-09*** empty log message ***Jim Meyering
2000-12-09*** empty log message ***Jim Meyering
2000-12-09.Jim Meyering
2000-12-09*** empty log message ***Jim Meyering
2000-12-09(jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.Jim Meyering
2000-12-09.Jim Meyering
2000-12-09.Jim Meyering
2000-12-09(chopt_free): don't free anythingJim Meyering
2000-12-09*** empty log message ***Jim Meyering
2000-12-09*** empty log message ***Jim Meyering
2000-12-09*** empty log message ***Jim Meyering
2000-12-09Include "chown-core.h".Jim Meyering
[enum Change_status, enum Verbosity]: Remove declarations. Remove decls of globals that are now part of struct Chown_option. Remove decl of xstat. (describe_change): Remove function. (change_file_group): Likewise. (change_dir_group): Likewise. (parse_group): Don't set global, groupname, here... (main): ... instead, initialize `chopt.group_name' here. Initialize chopt and update uses of the now-members. Set group_name also when it's obtained via a --reference=FILE option. Call change_file_owner (with -1 for uids), not change_file_group.
2000-12-09add 3 more prototypesJim Meyering
2000-12-09Include <pwd.h>, <grp.h>, and "xalloc.h".Jim Meyering
[!_POSIX_VERSION]: Declare getgrnam and getgrgid. (gid_to_name): New function. (uid_to_name): Likewise. (chopt_free): Likewise.
2000-12-09Don't include pwd.h or grp.h -- no longer needed.Jim Meyering
Include chown-core.h. [enum Change_status, enum Verbosity]: Remove declarations. Remove decls of globals that are now part of struct Chown_option. (describe_change): Remove function. (change_file_owner): Likewise. (change_dir_owner): Likewise. (main): Initialize chopt and update uses of the now-members. Set user_name and group_name also when they're obtained via a --reference=FILE option. Pass `chopt' to change_file_owner.
2000-12-09*** empty log message ***Jim Meyering
2000-12-09*** empty log message ***Jim Meyering
2000-12-09*** empty log message ***Jim Meyering
2000-12-09*** empty log message ***Jim Meyering
2000-12-09*** empty log message ***Jim Meyering
2000-12-09*** empty log message ***Jim Meyering
2000-12-09*** empty log message ***Jim Meyering
2000-12-09*** empty log message ***Jim Meyering
2000-12-09*** empty log message ***Jim Meyering
2000-12-09*** empty log message ***Jim Meyering
2000-12-09(change_file_owner): Restore special file permissionJim Meyering
bits, since calling chown resets them on some systems. Reported by Matt Perry.
2000-12-09*** empty log message ***Jim Meyering
2000-12-08Don't make the success of the test dependJim Meyering
on the order in which directory entries are processed.
2000-12-08*** empty log message ***Jim Meyering
2000-12-08*** empty log message ***Jim Meyering
2000-12-08(mbsnwidth): Don't loop endlessly when called with anJim Meyering
invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
2000-12-08*** empty log message ***Jim Meyering
2000-12-08Include xalloc.h.Jim Meyering
(main): Use dir_name rather than the underlying dir_name_r. The former now handles cwd-relative names with drive-letter prefixes.
2000-12-07*** empty log message ***Jim Meyering
2000-12-07convert a > expression to the equivalent < oneJim Meyering
2000-12-07(ISSLASH): Define.Jim Meyering
(strip_trailing_slashes): Use ISSLASH rather than comparing against `/'. From Prashant TR.
2000-12-07convert a > expression to the equivalent < oneJim Meyering
2000-12-07*** empty log message ***Jim Meyering
2000-12-07(FILESYSTEM_PREFIX_LEN): Define.Jim Meyering
(dir_name_r): Declare this function as static. [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd manifest itself on a name containing a mix of slashes and backslashes. Make this function work with names starting with a DOS-style drive letter and colon prefix. (dir_name): Append `.' if necessary. Based mostly on patches from Prashant TR and Eli Zaretskii.
2000-12-07(dir_name_r): Remove prototype.Jim Meyering
2000-12-07*** empty log message ***Jim Meyering
2000-12-07(address_base): Declare to be static.Jim Meyering
2000-12-07(address_base, address_pad_len): New var.Jim Meyering
(output_address_fmt_string, address_fmt_buffer, address_pad): Remove. (flag_pseudo_start): Now int, not long int. (pseudo_offset): Now off_t, not long int. (n_specs, n_specs_allocated): Now size_t, not unsigned int. (format_address, format_address_none, format_address_std, format_address_label): Now accepts an extra char argument (an extra char to print if nonzero), and prints instead of returning a string. All callers changed. (bytes_per_block): Now size_t, not int. (format_address_none): Do not even print the extra char argument. This simplifies the callers. (format_address_std, format_address_label): Print off_t ourself instead of trying to use autoconfigured format. This is faster and more portable. (format_address_paren): New function. (dump): Remove unnecessary cast. (expand_address_fmt): Remove. (main): Use size_t, off_t, etc. instead of builtin types where this is advisable. Adjust to above changes. Remove unnecessary cast.
2000-12-06*** empty log message ***Jim Meyering
2000-12-06Check for strtol. Mainly as a cue to cause automake to includeJim Meyering
strtol.c -- that file is included by each of strtoul.c and strtoull.c. Check for limits.h -- strtol.c needs it.
2000-12-06*** empty log message ***Jim Meyering
2000-12-06Check for declarations of strtoul and strtoull.Jim Meyering
2000-12-06separate conditions for strtoul and strtoullJim Meyering
2000-12-06*** empty log message ***Jim Meyering