coreutils/src
Jeffrey Finkelstein 1f1cd3d966 truncate: re-organize into one func for each mode
Reorganize the code in `truncate.rs` into three distinct functions
representing the three modes of operation of the `truncate` program. The
three modes are

- `truncate -r RFILE FILE`, which sets the length of `FILE` to match the
  length of `RFILE`,
- `truncate -r RFILE -s NUM FILE`, which sets the length of `FILE`
  relative to the given `RFILE`,
- `truncate -s NUM FILE`, which sets the length of `FILE` either
  absolutely or relative to its curent length.

This organization of the code makes it more concise and easier to
follow.
2021-05-22 23:54:39 -04:00
..
bin Update the binary usage to match busybox 2021-03-10 23:52:33 +01:00
uu truncate: re-organize into one func for each mode 2021-05-22 23:54:39 -04:00
uucore uucore::fs: don't canonicalize last component 2021-05-22 11:18:16 -04:00
uucore_procs Fix "panic message is not a string literal" warnings (#1915) 2021-03-26 11:09:16 +01:00