Jim Meyering [Sun, 17 Dec 2000 00:18:50 +0000 (00:18 +0000)]
*** empty log message ***
Jim Meyering [Sun, 17 Dec 2000 00:17:26 +0000 (00:17 +0000)]
*** empty log message ***
Jim Meyering [Sun, 17 Dec 2000 00:17:03 +0000 (00:17 +0000)]
*** empty log message ***
Jim Meyering [Sun, 17 Dec 2000 00:15:02 +0000 (00:15 +0000)]
.
Jim Meyering [Sun, 17 Dec 2000 00:14:40 +0000 (00:14 +0000)]
Update from master repository.
Jim Meyering [Sat, 16 Dec 2000 23:35:38 +0000 (23:35 +0000)]
.
Jim Meyering [Sat, 16 Dec 2000 22:27:18 +0000 (22:27 +0000)]
*** empty log message ***
Jim Meyering [Sat, 16 Dec 2000 22:26:23 +0000 (22:26 +0000)]
*** empty log message ***
Jim Meyering [Sat, 16 Dec 2000 22:25:44 +0000 (22:25 +0000)]
[!SHELLS_FILE && __DJGPP__]: Define
SHELLS_FILE to a file name that's useful on djgpp systems.
Include stdlib.h.
(ADDITIONAL_DEFAULT_SHELLS): Define.
(default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
Based mostly on a patch from Prashant TR.
Jim Meyering [Sat, 16 Dec 2000 18:53:08 +0000 (18:53 +0000)]
.
Jim Meyering [Sat, 16 Dec 2000 18:52:58 +0000 (18:52 +0000)]
(uint_to_string): New function.
(uid_to_name): Use it.
(gid_to_name): Use it.
Rename locals, user/group, to uid/gid.
Jim Meyering [Sat, 16 Dec 2000 18:47:43 +0000 (18:47 +0000)]
(enum Change_status): Start with 1.
Jim Meyering [Sat, 16 Dec 2000 14:49:25 +0000 (14:49 +0000)]
.
Jim Meyering [Sat, 16 Dec 2000 13:41:40 +0000 (13:41 +0000)]
*** empty log message ***
Jim Meyering [Sat, 16 Dec 2000 13:40:37 +0000 (13:40 +0000)]
*** empty log message ***
Jim Meyering [Sat, 16 Dec 2000 13:28:13 +0000 (13:28 +0000)]
This bug had a serious impact on chown: `chown N:M FILE' (for integer
N and M) would have treated it like `chown N:N FILE'.
(parse_user_spec): Fix typo: s/u/g/.
Jim Meyering [Sat, 16 Dec 2000 13:10:05 +0000 (13:10 +0000)]
(main): Rename local, group, to gid.
Jim Meyering [Sat, 16 Dec 2000 13:01:24 +0000 (13:01 +0000)]
tweak a comment
Jim Meyering [Sat, 16 Dec 2000 12:57:14 +0000 (12:57 +0000)]
(main): Rename locals, user/group, to uid/gid.
Jim Meyering [Sat, 16 Dec 2000 09:23:52 +0000 (09:23 +0000)]
*** empty log message ***
Jim Meyering [Sat, 16 Dec 2000 09:23:32 +0000 (09:23 +0000)]
*** empty log message ***
Jim Meyering [Sat, 16 Dec 2000 09:23:10 +0000 (09:23 +0000)]
Use group-names.
Jim Meyering [Sat, 16 Dec 2000 09:21:20 +0000 (09:21 +0000)]
Use group-names.
Jim Meyering [Sat, 16 Dec 2000 09:19:34 +0000 (09:19 +0000)]
*** empty log message ***
Jim Meyering [Sat, 16 Dec 2000 09:11:24 +0000 (09:11 +0000)]
Don't assume that creating a file gives it group $g1.
Jim Meyering [Sat, 16 Dec 2000 08:20:57 +0000 (08:20 +0000)]
.
Jim Meyering [Sat, 16 Dec 2000 08:20:11 +0000 (08:20 +0000)]
(TESTS): Add recurse.
Jim Meyering [Fri, 15 Dec 2000 23:43:55 +0000 (23:43 +0000)]
Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB, VISCII,
CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256, CP1257
to the list of canonical encodings. Rename EUC-CN to GB2312.
Jim Meyering [Fri, 15 Dec 2000 14:49:48 +0000 (14:49 +0000)]
*** empty log message ***
Jim Meyering [Fri, 15 Dec 2000 14:45:50 +0000 (14:45 +0000)]
*** empty log message ***
Jim Meyering [Fri, 15 Dec 2000 13:32:24 +0000 (13:32 +0000)]
*** empty log message ***
Jim Meyering [Fri, 15 Dec 2000 13:31:21 +0000 (13:31 +0000)]
*** empty log message ***
Jim Meyering [Fri, 15 Dec 2000 13:30:32 +0000 (13:30 +0000)]
.
Jim Meyering [Fri, 15 Dec 2000 13:29:56 +0000 (13:29 +0000)]
(main): Reflect renaming: s/dereference/change_symlinks/.
Jim Meyering [Fri, 15 Dec 2000 13:27:03 +0000 (13:27 +0000)]
(enum Dereference_symlink): rename member: s/change_symlinks/dereference/
Jim Meyering [Fri, 15 Dec 2000 13:24:47 +0000 (13:24 +0000)]
Declare lstat.
Rename change_symlinks member to `dereference' and use the DEREF_*
enum values.
(describe_change): Merge the chgrp and chown switch statements.
Use xmalloc to form the `user:group' string.
(change_file_owner): Record (and later, use) is_symlink and is_directory
from the lstat stats, in order to control whether we operate on symlinks
and whether (with -R) we traverse symlinks to directories.
When dereferencing, use open/fchown (rather than chown) on symlinks.
Jim Meyering [Fri, 15 Dec 2000 08:42:35 +0000 (08:42 +0000)]
changed messages to match those chgrp now produces
Jim Meyering [Thu, 14 Dec 2000 15:01:55 +0000 (15:01 +0000)]
*** empty log message ***
Jim Meyering [Thu, 14 Dec 2000 15:01:24 +0000 (15:01 +0000)]
*** empty log message ***
Jim Meyering [Thu, 14 Dec 2000 14:52:15 +0000 (14:52 +0000)]
*** empty log message ***
Jim Meyering [Wed, 13 Dec 2000 22:25:42 +0000 (22:25 +0000)]
*** empty log message ***
Jim Meyering [Wed, 13 Dec 2000 07:54:44 +0000 (07:54 +0000)]
*** empty log message ***
Jim Meyering [Sun, 10 Dec 2000 23:25:43 +0000 (23:25 +0000)]
*** empty log message ***
Jim Meyering [Sun, 10 Dec 2000 12:50:40 +0000 (12:50 +0000)]
*** empty log message ***
Jim Meyering [Sun, 10 Dec 2000 09:20:52 +0000 (09:20 +0000)]
add envvar and lang checks
Jim Meyering [Sun, 10 Dec 2000 09:20:35 +0000 (09:20 +0000)]
*** empty log message ***
Jim Meyering [Sun, 10 Dec 2000 08:07:38 +0000 (08:07 +0000)]
*** empty log message ***
Jim Meyering [Sun, 10 Dec 2000 08:04:50 +0000 (08:04 +0000)]
give a better diagnostic when only the group is being changed
Jim Meyering [Sat, 9 Dec 2000 22:18:02 +0000 (22:18 +0000)]
.
Jim Meyering [Sat, 9 Dec 2000 22:17:31 +0000 (22:17 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Dec 2000 22:16:57 +0000 (22:16 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Dec 2000 22:07:28 +0000 (22:07 +0000)]
.
Jim Meyering [Sat, 9 Dec 2000 22:06:03 +0000 (22:06 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Dec 2000 22:05:54 +0000 (22:05 +0000)]
(jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
Jim Meyering [Sat, 9 Dec 2000 22:05:28 +0000 (22:05 +0000)]
.
Jim Meyering [Sat, 9 Dec 2000 20:55:41 +0000 (20:55 +0000)]
.
Jim Meyering [Sat, 9 Dec 2000 20:54:23 +0000 (20:54 +0000)]
(chopt_free): don't free anything
Jim Meyering [Sat, 9 Dec 2000 20:44:39 +0000 (20:44 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Dec 2000 20:39:17 +0000 (20:39 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Dec 2000 20:38:12 +0000 (20:38 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Dec 2000 20:38:01 +0000 (20:38 +0000)]
Include "chown-core.h".
[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.
Jim Meyering [Sat, 9 Dec 2000 20:31:56 +0000 (20:31 +0000)]
add 3 more prototypes
Jim Meyering [Sat, 9 Dec 2000 20:31:34 +0000 (20:31 +0000)]
Include <pwd.h>, <grp.h>, and "xalloc.h".
[!_POSIX_VERSION]: Declare getgrnam and getgrgid.
(gid_to_name): New function.
(uid_to_name): Likewise.
(chopt_free): Likewise.
Jim Meyering [Sat, 9 Dec 2000 20:29:32 +0000 (20:29 +0000)]
Don't include pwd.h or grp.h -- no longer needed.
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.
Jim Meyering [Sat, 9 Dec 2000 14:47:06 +0000 (14:47 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Dec 2000 14:46:34 +0000 (14:46 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Dec 2000 14:08:07 +0000 (14:08 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Dec 2000 13:50:13 +0000 (13:50 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Dec 2000 13:48:03 +0000 (13:48 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Dec 2000 13:44:37 +0000 (13:44 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Dec 2000 13:44:10 +0000 (13:44 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Dec 2000 13:38:51 +0000 (13:38 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Dec 2000 12:47:51 +0000 (12:47 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Dec 2000 10:15:26 +0000 (10:15 +0000)]
*** empty log message ***
Jim Meyering [Sat, 9 Dec 2000 10:15:17 +0000 (10:15 +0000)]
(change_file_owner): Restore special file permission
bits, since calling chown resets them on some systems.
Reported by Matt Perry.
Jim Meyering [Sat, 9 Dec 2000 10:14:52 +0000 (10:14 +0000)]
*** empty log message ***
Jim Meyering [Fri, 8 Dec 2000 20:31:47 +0000 (20:31 +0000)]
Don't make the success of the test depend
on the order in which directory entries are processed.
Jim Meyering [Fri, 8 Dec 2000 20:31:15 +0000 (20:31 +0000)]
*** empty log message ***
Jim Meyering [Fri, 8 Dec 2000 18:32:11 +0000 (18:32 +0000)]
*** empty log message ***
Jim Meyering [Fri, 8 Dec 2000 18:31:38 +0000 (18:31 +0000)]
(mbsnwidth): Don't loop endlessly when called with an
invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
Jim Meyering [Fri, 8 Dec 2000 08:06:33 +0000 (08:06 +0000)]
*** empty log message ***
Jim Meyering [Fri, 8 Dec 2000 07:55:05 +0000 (07:55 +0000)]
Include xalloc.h.
(main): Use dir_name rather than the underlying dir_name_r.
The former now handles cwd-relative names with drive-letter prefixes.
Jim Meyering [Thu, 7 Dec 2000 14:14:18 +0000 (14:14 +0000)]
*** empty log message ***
Jim Meyering [Thu, 7 Dec 2000 14:13:51 +0000 (14:13 +0000)]
convert a > expression to the equivalent < one
Jim Meyering [Thu, 7 Dec 2000 14:13:13 +0000 (14:13 +0000)]
(ISSLASH): Define.
(strip_trailing_slashes): Use ISSLASH rather than comparing against `/'.
From Prashant TR.
Jim Meyering [Thu, 7 Dec 2000 14:11:52 +0000 (14:11 +0000)]
convert a > expression to the equivalent < one
Jim Meyering [Thu, 7 Dec 2000 14:10:33 +0000 (14:10 +0000)]
*** empty log message ***
Jim Meyering [Thu, 7 Dec 2000 14:10:21 +0000 (14:10 +0000)]
(FILESYSTEM_PREFIX_LEN): Define.
(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.
Jim Meyering [Thu, 7 Dec 2000 11:50:35 +0000 (11:50 +0000)]
(dir_name_r): Remove prototype.
Jim Meyering [Thu, 7 Dec 2000 10:07:28 +0000 (10:07 +0000)]
*** empty log message ***
Jim Meyering [Thu, 7 Dec 2000 10:07:08 +0000 (10:07 +0000)]
(address_base): Declare to be static.
Jim Meyering [Thu, 7 Dec 2000 10:05:09 +0000 (10:05 +0000)]
(address_base, address_pad_len): New var.
(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.
Jim Meyering [Wed, 6 Dec 2000 11:06:43 +0000 (11:06 +0000)]
*** empty log message ***
Jim Meyering [Wed, 6 Dec 2000 11:06:39 +0000 (11:06 +0000)]
Check for strtol. Mainly as a cue to cause automake to include
strtol.c -- that file is included by each of strtoul.c and strtoull.c.
Check for limits.h -- strtol.c needs it.
Jim Meyering [Wed, 6 Dec 2000 10:52:37 +0000 (10:52 +0000)]
*** empty log message ***
Jim Meyering [Wed, 6 Dec 2000 10:52:28 +0000 (10:52 +0000)]
Check for declarations of strtoul and strtoull.
Jim Meyering [Wed, 6 Dec 2000 10:26:51 +0000 (10:26 +0000)]
separate conditions for strtoul and strtoull
Jim Meyering [Wed, 6 Dec 2000 09:55:03 +0000 (09:55 +0000)]
*** empty log message ***
Jim Meyering [Wed, 6 Dec 2000 09:35:48 +0000 (09:35 +0000)]
*** empty log message ***
Jim Meyering [Wed, 6 Dec 2000 09:35:40 +0000 (09:35 +0000)]
(jm_AC_PREREQ_XSTRTOUMAX): If we need the replacement
strtoull, we may well need the replacement strtoul, too.