[PATCH 2/2] On macOS update shred and hdiutil
ritewhose
ritewhose at gmail.com
Fri Mar 3 05:52:43 CET 2017
---
src/platform/darwin.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/platform/darwin.sh b/src/platform/darwin.sh
index a9987b0..a948176 100644
--- a/src/platform/darwin.sh
+++ b/src/platform/darwin.sh
@@ -25,7 +25,7 @@ tmpdir() {
}
trap unmount_tmpdir INT TERM EXIT
SECURE_TMPDIR="$(mktemp -d "${TMPDIR:-/tmp}/$PROGRAM.XXXXXXXXXXXXX")"
- DARWIN_RAMDISK_DEV="$(hdid -drivekey system-image=yes -nomount 'ram://32768' | cut -d ' ' -f 1)" # 32768 sectors = 16 mb
+ DARWIN_RAMDISK_DEV="$(hdiutil -nomount 'ram://32768' | cut -d ' ' -f 1)" # 32768 sectors = 16 mb
[[ -z $DARWIN_RAMDISK_DEV ]] && die "Error: could not create ramdisk."
newfs_hfs -M 700 "$DARWIN_RAMDISK_DEV" &>/dev/null || die "Error: could not create filesystem on ramdisk."
mount -t hfs -o noatime -o nobrowse "$DARWIN_RAMDISK_DEV" "$SECURE_TMPDIR" || die "Error: could not mount filesystem on ramdisk."
@@ -42,4 +42,3 @@ qrcode() {
}
GETOPT="$(brew --prefix gnu-getopt 2>/dev/null || { which port &>/dev/null && echo /opt/local; } || echo /usr/local)/bin/getopt"
-SHRED="srm -f -z"
--
2.12.0
More information about the Password-Store
mailing list