sin-ack
60f6bc902b
Userland: Convert command line arguments to String/StringView
...
StringView was used where possible. Some utilities still use libc
functions which expect null-terminated strings, so String objects were
used there instead.
2022-07-12 23:11:35 +02:00
Tim Schumacher
87da3e0004
tar: Implement support for GNU longname headers
2022-06-06 20:12:30 +01:00
Sam Atkins
f0aba519c3
Utilities: Read positional arguments as Strings not char*s
...
This is a pretty trivial change so they're all batched together.
2022-04-11 21:09:42 +02:00
kleines Filmröllchen
5319e3a03f
LibCore+Userland: Remove File::ensure_parent_directories
...
We have a much safer and more powerful alternative now, so let's move
the few users over.
2022-04-11 00:08:48 +02:00
Idan Horowitz
086969277e
Everywhere: Run clang-format
2022-04-01 21:24:45 +01:00
Tim Schumacher
495a1be925
tar: Implement support for extended headers :^)
2022-03-05 13:17:13 +01:00
Tim Schumacher
ff19c1cffe
tar: Use the prefixed path for listing and verbose output
2022-03-05 13:17:13 +01:00
Tim Schumacher
e2d71823d3
tar: Prevent file buffering from reading uninitialized data
...
Regressed in 91fa10a0ab
.
2022-03-05 13:09:42 +01:00
cocateh
91fa10a0ab
Utilities: Port tar to LibMain
...
Ported tar to LibMain and changed it to use Core::System syscalls.
2022-03-02 21:55:32 +01:00
Tim Schumacher
b689e8b7f4
tar: Automatically recognize gzip archives
2022-02-18 10:41:44 +01:00
circl
69c757e92f
tar: Implement -C option
...
This allows specifying which directory to extract to or create
from.
I would have used the *at variants of the functions, but some
weren't implemented yet.
2022-01-04 06:22:34 +00:00
Tim Schumacher
75978d5fff
tar: Support extracting symlinks
...
We can now extract GitHub's LLVM tarballs. :^)
2021-11-22 21:57:42 +01:00
Tim Schumacher
0d679bf348
tar: Implement usage of prefixes when extracting
2021-11-22 09:03:47 +01:00
Tim Schumacher
c94574d313
Utilities/tar: Ignore directory entry if it already exists
2021-11-13 11:42:08 +01:00
Tim Schumacher
bd6c48f6ea
Utilities: tar: Always create parent directory when extracting
2021-11-10 14:48:20 +01:00
Peter Elliott
33d7fdca28
Everywhere: Use my cool new @serenityos.org email address
2021-09-01 11:37:25 +04:30
Lynn
d3aae59478
tar: Ignore "extended headers"
...
Looking around online, it seems like this is normally a bit of
metadata that the extract operation can safely ignore.
2021-05-24 00:01:01 +01:00
Jean-Baptiste Boric
3038edab00
Utilities: Correct non-standard assert macros includes
2021-05-17 18:14:05 +01:00
Ali Mohammad Pur
a91a49337c
LibCore+Everywhere: Move OpenMode out of IODevice
...
...and make it an enum class so people don't omit "OpenMode".
2021-05-12 11:00:45 +01:00
Andreas Kling
7ae7170d61
Everywhere: "file name" => "filename"
2021-04-29 22:16:18 +02:00
Andreas Kling
39369f1da6
Utilities: Use Vector<String> positional arguments in some places
...
There are more places we can use these, I just picked some that felt
like they improved the code.
2021-04-29 11:28:01 +02:00
Gunnar Beutner
c861195557
Userland: Fix new GCC warnings
2021-04-29 10:33:44 +02:00
Brian Gianforcaro
1682f0b760
Everything: Move to SPDX license identifiers in all files.
...
SPDX License Identifiers are a more compact / standardized
way of representing file license information.
See: https://spdx.dev/resources/use/#identifiers
This was done with the `ambr` search and replace tool.
ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-22 11:22:27 +02:00
Idan Horowitz
a809db90dd
Libraries: Rename LibTar to LibArchive
...
This is in preparation for a new implementation of zip archive
extraction and creation.
2021-03-23 16:09:36 +01:00
Idan Horowitz
b3b920eddc
tar: Implement tar archive creation
...
This completes our tar utility by implementing the -c option
for archive creation using TarOutputStream and optionally
GzipCompressor for compression via the -z option.
2021-03-13 20:07:25 +01:00
Idan Horowitz
7eab20bad0
LibTar: Implement TarOutputStream
...
This output stream creates gnu format tar archives
and currently only supports files and directories.
2021-03-13 20:07:25 +01:00
Andreas Kling
ef1e5db1d0
Everywhere: Remove klog(), dbg() and purge all LogStream usage :^)
...
Good-bye LogStream. Long live AK::Format!
2021-03-12 17:29:37 +01:00
Andreas Kling
5d180d1f99
Everywhere: Rename ASSERT => VERIFY
...
(...and ASSERT_NOT_REACHED => VERIFY_NOT_REACHED)
Since all of these checks are done in release builds as well,
let's rename them to VERIFY to prevent confusion, as everyone is
used to assertions being compiled out in release.
We can introduce a new ASSERT macro that is specifically for debug
checks, but I'm doing this wholesale conversion first since we've
accumulated thousands of these already, and it's not immediately
obvious which ones are suitable for ASSERT.
2021-02-23 20:56:54 +01:00
Andreas Kling
ececac65c2
Userland: Move command-line utilities to Userland/Utilities/
2021-01-12 12:04:09 +01:00