diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2023-08-30 23:09:49 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2023-08-30 23:09:49 +0000 |
commit | b2d250b83800d9fec6901b0bb775b279e141bf75 (patch) | |
tree | 8edbe598b07b50a72edd86e8af28f6836683a58f | |
parent | 605a2983f245ac63f5420e023e7dce56898ad801 (diff) | |
download | ports-b2d250b83800d9fec6901b0bb775b279e141bf75.tar.gz ports-b2d250b83800d9fec6901b0bb775b279e141bf75.zip |
sysutils/password-store: remove warning about dev/shm
PR: 273450
-rw-r--r-- | sysutils/password-store/Makefile | 2 | ||||
-rw-r--r-- | sysutils/password-store/files/patch-src_password-store.sh | 17 |
2 files changed, 18 insertions, 1 deletions
diff --git a/sysutils/password-store/Makefile b/sysutils/password-store/Makefile index 98452db81175..10a6be989acc 100644 --- a/sysutils/password-store/Makefile +++ b/sysutils/password-store/Makefile @@ -1,6 +1,6 @@ PORTNAME= password-store PORTVERSION= 1.7.4 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= sysutils MASTER_SITES= https://git.zx2c4.com/${PORTNAME}/snapshot/ diff --git a/sysutils/password-store/files/patch-src_password-store.sh b/sysutils/password-store/files/patch-src_password-store.sh new file mode 100644 index 000000000000..85cea048407e --- /dev/null +++ b/sysutils/password-store/files/patch-src_password-store.sh @@ -0,0 +1,17 @@ +--- src/password-store.sh.orig 2023-08-30 23:03:53 UTC ++++ src/password-store.sh +@@ -225,14 +225,6 @@ tmpdir() { + } + trap remove_tmpfile EXIT + else +- [[ $warn -eq 1 ]] && yesno "$(cat <<-_EOF +- Your system does not have /dev/shm, which means that it may +- be difficult to entirely erase the temporary non-encrypted +- password file after editing. +- +- Are you sure you would like to continue? +- _EOF +- )" + SECURE_TMPDIR="$(mktemp -d "${TMPDIR:-/tmp}/$template")" + shred_tmpfile() { + find "$SECURE_TMPDIR" -type f -exec $SHRED {} + |