Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-01-12 | Fix cp permissions when copying symlink contents, and add test. | Rob Landley | |
2018-12-11 | Implement --preserve default = mot behavior (fixes segfault when no argument). | Rob Landley | |
2018-12-04 | Clean up some --help formatting. | Elliott Hughes | |
Be consistent about upper versus lower case. (Upper seems to have the majority, so I went with that, though I'm happy to provide the opposite patch as long as we're consistent!) Be consistent about using \t. (Though saving a few bytes seems like it might be better done in the code that generates help.h rather than directly in the source, since tabs make careful ASCII art layout hard enough that we regularly have things misaligned.) Remove trailing periods (most of which seem to have been added by me). Always use the US "human readable" rather than my British "human-readable", and be more consistent about declaring whether we're showing multiples of 1000 or 1024. Just say "verbose" rather than adding a useless "mode" or "output". | |||
2018-11-17 | Volodymyr Medvid reported that install -d doesn't honor -o or -g. | Rob Landley | |
2018-08-31 | Convert option style. | Rob Landley | |
2018-04-12 | Fix "cp -p" doesn't preserve timestamps bug | Minghui Liu | |
2018-04-08 | Add cp --parents | Rob Landley | |
2017-01-28 | Add missing `static`s and remove an unused function. | Elliott Hughes | |
2016-08-18 | Change xgetpwnamid/xgetgrnamid to xgetuid/xgetgid returning the id number | Rob Landley | |
instead of a struct. This means it can return "12345" even if that user/group doesn't exist in /etc/passwd and similar. All the users were immediately dereferencing it to get pw_uid or gr_gid anyway, so just return it directly and adjust the users. This fixes things like "chown 12345:23456 filename". | |||
2016-06-15 | Add readlink0() and readlinkat0() which null terminate the data. | Rob Landley | |
2016-06-09 | Fix dangling link after cp command | Kyungsik Lee | |
"toybuf" should be initialized before calling symlinkat() or dangling link could occur. | |||
2016-05-31 | In cp -a, don't complain if non-root user can't chown, failure is expected.0.7.1 | Rob Landley | |
2016-05-30 | Add output path to cp error message filenames. | Rob Landley | |
2016-03-30 | Whitespace and comment. | Rob Landley | |
2016-03-30 | Implement mv -n / cp -n (no clobber). | Andy Chu | |
This fixes a failing test case in mv.test. Test changes: - Add coverage for -i (interactive). - Better descriptions, better formatting, and removed some redundant cases. | |||
2016-03-12 | Update scripts/single.sh and cp.c so "make mv" isn't actually building cp. | Rob Landley | |
2016-03-12 | The xattr functions were added during the 2.5 kernel, lsm.h can #include the | Rob Landley | |
header unconditionally. (This fixes the warning when CP_PRESERVE disabled.) | |||
2016-03-07 | Cleanup pass on the dirtree infrastructure, in preparation for making rm -r | Rob Landley | |
handle infinite depth. Fix docs, tweak dirtree_handle_callback() semantics, remove dirtree_start() and don't export dirtree_handle_callback(), instead offer dirtree_flagread(). (dirtree_read() is a wrapper around dirtree_flagread passing 0 for flags.) | |||
2016-02-01 | Fix directory test in cp. | Elliott Hughes | |
Commit 3d33dd80f8cb931e293d7f64c44bc357fec11120 fixed a use of S_ISDIR on st_dev rather than st_mode in find, but there was another instance of the same error in cp. | |||
2016-01-05 | Add error_msg_raw() and friends, replace error_msg("%s", s) uses, enable format | Rob Landley | |
checking, and fix up format checking complaints. Added out(type, value) function to stat to avoid a zillion printf typecasts. | |||
2015-12-22 | First guess at cp xattr support, ala --preserve=context,xattr | Rob Landley | |
2015-12-22 | Convert cp from magic constants to TAGGED_ARRAY() | Rob Landley | |
2015-10-27 | Install without a mode should use 0755, and check FLAG_preserve instead of | Rob Landley | |
the global so "install -g 0" doesn't alias to "cp --preserve 0" and error out. through to --preserve 0" | |||
2015-09-07 | Remove prompt argument from yesno(), caller can fprintf(stderr, "blah") itself. | Rob Landley | |
This fixes the build break, the change to yesno() prototype accidentally got checked in last commit. (Oops, sorry.) | |||
2015-08-30 | Fix mv on overwrite. | Elliott Hughes | |
We need to remove the destination, not the source, to be able to overwrite. | |||
2015-07-03 | First pass on cp --preserve | Rob Landley | |
2015-05-10 | Cleanups of dirtree_start() calls. (Don't need to feed in flag values, just | Rob Landley | |
symfollow true/false.) | |||
2015-05-09 | Add DIRTREE_SHUTUP to disable dirtree warnings if file vanishes out from | Rob Landley | |
under traversal. Pass through full flag set in dirtree_add_node(), add dirtree_start() wrapper to provide symlink-only behavior (avoiding a lot of DIRTREE_SYMFOLLOW*!!(logic) repeated in callers). | |||
2015-03-21 | install -D bugfix from David Halls. | Rob Landley | |
(I tweaked some comment text while I was there.) | |||
2015-03-12 | Make install support numeric uid/gids (reported by Kylie McClain). | Rob Landley | |
2015-03-01 | Patches from Elliott Hughes to fix various printf() format strings. | Rob Landley | |
(Don't specify the space flag when it's the default behavior. The ifconfig stuff was actual bugs.) | |||
2015-02-15 | Add --remove-destination longopt for -F because the host version doesn't ↵ | Rob Landley | |
have a shortopt for it. | |||
2014-12-31 | When CP_MORE was disabled, the d flag was still in the [-exclusion] list at ↵ | Rob Landley | |
the end and option parsing fell off the end looking for it (segfault) if DEBUG wasn't enabled to check for that. | |||
2014-12-18 | Decouple cp and mv so mv uses its own --help text. | Rob Landley | |
MV still requires CP enabled until the flag generation logic gets updated. | |||
2014-11-22 | As long as Android's going to require fortify, fixup the warnings it generates. | Rob Landley | |
2014-10-14 | Fix last night's mv commit (use dest, not source). | Rob Landley | |
2014-10-14 | Implement mv -f and -i. | Rob Landley | |
2014-10-09 | Various bugfixes (mostly resource leaks) from Ashwini Sharma's static ↵ | Rob Landley | |
analysis, plus occasional tweak by me while reviewing them. | |||
2014-09-14 | Split xpopen() into xpopen_both(), xpopen(), and xrun() depending on whether ↵ | Rob Landley | |
we want to redirect both, one, or neither of stdin/stdout. | |||
2014-09-01 | Add cp -F to force delete of existing destination files, and make install ↵ | Rob Landley | |
command use that. -F is equivalent to the gnu/dammit flag --we-think-long-options-without-short-options-are-a-good-idea | |||
2014-08-16 | Add install to cp/mv. | Rob Landley | |
2014-07-26 | Move DIRTREE_COMEAGAIN second callback up to when the filehandle is still ↵ | Rob Landley | |
open, and add dir->again variable to distinguish second call instead of checking for -1 filehandle. | |||
2014-07-14 | Implement -HL for cp. | Rob Landley | |
2014-02-04 | Tweak help text. | Rob Landley | |
2014-01-16 | Rename xmsprintf() to just xmprintf(). | Rob Landley | |
Partly because there's no supplied target string ala sprintf, and partly because I can never remember what order the m and s go in. | |||
2013-08-01 | Need to specify bool for CP_MV_MORE config symbol to avoid warnings. | Rob Landley | |
2013-06-22 | Implement mv as an extension of cp. | Rob Landley | |
2013-02-10 | Implement cp -s option. | Rob Landley | |
2013-01-31 | Fix -in behavior: descend into existing directory without prompting, show ↵ | Rob Landley | |
full path in error messages, actually overwrite when answering yes to -i. | |||
2013-01-18 | Adjust umask(0) for cp -p so mknod doesn't have to try to fchmodat() without ↵0.4.3 | Rob Landley | |
the unsupported symlink nofollow flag. |