aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/cp.c
AgeCommit message (Collapse)Author
2014-01-16Rename 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-01Need to specify bool for CP_MV_MORE config symbol to avoid warnings.Rob Landley
2013-06-22Implement mv as an extension of cp.Rob Landley
2013-02-10Implement cp -s option.Rob Landley
2013-01-31Fix -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-18Adjust umask(0) for cp -p so mknod doesn't have to try to fchmodat() without ↵0.4.3Rob Landley
the unsupported symlink nofollow flag.
2013-01-16Make "sudo cp -rp /dev/null blah" work. Still not happy with it, ↵Rob Landley
fchmodat(AT_SYMLINK_NOFOLLOW) doesn't work (there's a glibc bug open for this. It's really a missing kernel syscall, but glibc fails without ever making any syscall if you feed it that flag, which isn't helpful).
2013-01-12Update -p and -f to apply properly to various conditions. Still some bugs to ↵Rob Landley
squeeze out but this gets the infrastructure mostly right (and does away with the remaining gotos).
2013-01-10Teach cp to do -n.Rob Landley
2013-01-09Teach cp to do mknod.Rob Landley
2013-01-07Adapt cp to updated dirtree code.Rob Landley
2012-11-13Reindent to two spaces per level. Remove vi: directives that haven't worked ↵Rob Landley
right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style. The actual code should be the same afterward, this is just cosmetic refactoring.
2012-10-08New build infrastructure to generate FLAG_ macros and TT alias, #define ↵Rob Landley
FOR_commandname before #including toys.h to trigger it. Rename DEFINE_GLOBALS() to just GLOBALS() (because I could never remember if it was DECLARE_GLOBALS). Convert existing commands to use new infrastructure, and replace optflag constants with FLAG_ macros where appropriate.
2012-08-25Regularize command headers, update links to standards documents.Rob Landley
2012-08-25Move commands into "posix", "lsb", and "other" menus/directories.Rob Landley