summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2004-06-14.Jim Meyering
2004-06-14*** empty log message ***Jim Meyering
2004-06-14(TESTS): Add pwd.Jim Meyering
(BUILD_SRC_DIR): Define BUILD_SRC_DIR.
2004-06-14*** empty log message ***Jim Meyering
2004-06-14New test, for fix of 2004-04-19.Jim Meyering
2004-06-14*** empty log message ***Jim Meyering
2004-06-14Remove declaration of euidaccess.Jim Meyering
Instead, include "euidaccess.h".
2004-06-13*** empty log message ***Jim Meyering
2004-06-13(PIDSTR_DECL_AND_INIT): Don't assume pid_t fits in int.Jim Meyering
(UT_ID) [!HAVE_STRUCT_XTMP_UT_ID]: Remove bogus comment, as (sizeof "??") reliably returns 3. (print_line): Guard against idle and pid being too long (which is possible when printing headers). (print_user): Allocate enough bytes for idlestr. Use IDLESTR_LEN. Avoid unnecessary cast of sizeof to int. (make_id_equals_comment): Do not assume that UT_ID returns a string; it might return a non-null-terminated array. Use strncat instead. It's not very often where strncat is exactly what you want, but this is one of those rare cases.
2004-06-12*** empty log message ***Jim Meyering
2004-06-12(extract_trimmed_name): Don't apply strchr to aJim Meyering
non-string; this leads to undefined behavior.
2004-06-12*** empty log message ***Jim Meyering
2004-06-12(list_entries_who): Don't output a trailing space.Jim Meyering
2004-06-09*** empty log message ***Jim Meyering
2004-06-09(AC_FUNC_CALLOC): Remove use of AN_FUNCTION.Jim Meyering
2004-06-09*** empty log message ***Jim Meyering
2004-06-09(usage): Improve wording in description of the --time=WORD option.Jim Meyering
2004-06-09Adjust to accommodate Paul Eggert's changes of 2004-06-08.Jim Meyering
2004-06-09*** empty log message ***Jim Meyering
2004-06-09(change_file_owner): Change names of parametersJim Meyering
old_uid and old_gid to required_uid and required_gid respectively.
2004-06-09*** empty log message ***Jim Meyering
2004-06-09Adjust chmod and chown to be similar if -c or -v are given. InJim Meyering
particular, a no-op chown is no longer reported as a change; this reverts to previous behavior. Also, fix both commands so that -v report failures even if the failure is not due to the chmod or chown syscalls. * src/chown-core.c (change_file_owner): Return -1 on error, not 1 sometimes and -1 on others. Our caller ORs together our results, and (-1 | 1) == 0 on ones-complement hosts. With -v report all errors verbosely, not just some. Fix bug when chopt->root_dev_ino && !chopt->affect_symlink_referent: file_stats wasn't set properly in that case.
2004-06-09(mode_changed): Return false, not 0, now that the function returns `bool'.Jim Meyering
2004-06-09Adjust chmod and chown to be similar if -c or -v are given. InJim Meyering
particular, a no-op chown is no longer reported as a change; this reverts to previous behavior. Also, fix both commands so that -v report failures even if the failure is not due to the chmod or chown syscalls. * src/chmod.c (CH_NOT_APPLIED): New constant. (describe_change): Handle it. (process_file): Use it, if a symlink wasn't changed. (mode_changed): Return bool, not int. Accept new argument NEW_MODE; all callers changed. This lets us avoid statting the file unless the new mode has unusual bits. (process_file): Return -1 on error. With -v, report all errors verbosely, not just some.
2004-06-08.Jim Meyering
2004-06-08*** empty log message ***Jim Meyering
2004-06-08*** empty log message ***Jim Meyering
2004-06-08Test that chgrp -h does not fail onJim Meyering
symlinks, even on hosts where that's not supported. Test that if -R is specified without -H or L, -h is assumed. Test that chown() is not optimized away.
2004-06-08s/FTS_STAT/FTS_NOSTAT/Jim Meyering
2004-06-08Adjust error-diagnostic spelling to match new behavior.Jim Meyering
2004-06-08Do not attempt to combine -h and -H; theseJim Meyering
options are incompatible, and their behavior is undefined with POSIX. (changed, not_changed): Adjust to match the fact that -h is no longer specified. Sort names.
2004-06-08Use chown --from to discover whether theJim Meyering
group changed, since chgrp now changes unconditionally. This complicates the sed script a bit. Do not specify --dereference, since it's the default (and we want to test this). Adjust output to match the fact that chgrp no longer optimizes the case of changing a file's group to the same value as before.
2004-06-08.Jim Meyering
2004-06-08.Jim Meyering
2004-06-08(change_file_owner): Use ent->fts_statp only ifJim Meyering
needed. Chown a directory only after chowning its children; this avoids problems if the new directory ownership doesn't permit access to the children. Dereference symlinks before doing ROOT_DEV_INO_CHECK, not after, so that we catch symlinks to /. Do not optimize away the chown() system call when the file's owner and group already have the desired value. POSIX does not permit this optimization. Rely on chown and lchown to do the right thing with symlinks and/or -1 arguments, now that we have wrappers to do this. Use ENOTSUPP not ENOSYS, and ignore all ENOTSUPP errors, not just command-line errors. (chown_files): Pass FTS_STAT to xfts_open if we don't need file status.
2004-06-08(main): Check for incompatible options. -R --dereferenceJim Meyering
requires either -H or -L, and -R -h requires -P. If -H, specify FTS_PHYSICAL as well as FTS_COMFOLLOW; this is faster. Make this file as much like chown.c as possible.
2004-06-08(main): Check for incompatible options. -R --dereferenceJim Meyering
requires either -H or -L, and -R -h requires -P. If -H, specify FTS_PHYSICAL as well as FTS_COMFOLLOW; this is faster. Make this file as much like chgrp.c as possible.
2004-06-08*** empty log message ***Jim Meyering
2004-06-08(fts_stat, fts_alloc): Always allocate and use a structJim Meyering
stat, even if the user isn't interested in the results. This prevents a core dump in cycle_check when FTS_NOSTAT is set.
2004-06-08(ENOTSUP): Remove.Jim Meyering
2004-06-08fix typoJim Meyering
2004-06-08*** empty log message ***Jim Meyering
2004-06-08(EOPNOTSUPP): Define if not defined.Jim Meyering
(ENOSYS): Remove.
2004-06-08(lchown): Return EOPNOTSUPP if not supported; thisJim Meyering
is what POSIX-2004 specifies.
2004-06-08*** empty log message ***Jim Meyering
2004-06-08(main): Fix typo introduced on 2003-05-10 thatJim Meyering
prevented a diagnostic of any operands.
2004-06-08*** empty log message ***Jim Meyering
2004-06-08.Jim Meyering
2004-06-08(direct_mode): Turn it on/off with directio, too.Jim Meyering
2004-06-07*** empty log message ***Jim Meyering