From 1860edaccf12bfe2c4f9acf30cc86ae43e8fdec5 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Mon, 20 Jun 2022 02:11:33 -0400 Subject: [PATCH] Fix FreeBSD errors on entry creation/editing due to attempting to access a directory with limited permissions --- bin/sshyp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sshyp b/bin/sshyp index 97de95d..c14e96d 100755 --- a/bin/sshyp +++ b/bin/sshyp @@ -189,7 +189,7 @@ def tweak(): # runs configuration wizard Path(path.expanduser('~/.password-pasture')).mkdir(0o700, parents=True, exist_ok=True) Path(path.expanduser('~/.config/sshyp/devices')).mkdir(0o700, parents=True, exist_ok=True) if not Path(f"{path.expanduser('~/.config/sshyp/tmp')}").exists(): - if uname()[0] == 'Haiku': + if uname()[0] == 'Haiku' or uname()[0] == 'FreeBSD': system(f"ln -s /tmp {path.expanduser('~/.config/sshyp/tmp')}") elif Path("/data/data/com.termux").exists(): system(f"ln -s '/data/data/com.termux/files/usr/tmp' {path.expanduser('~/.config/sshyp/tmp')}")