summaryrefslogtreecommitdiff
path: root/user/encfs/shell.patch
diff options
context:
space:
mode:
authorCyberLeo <cyberleo@cyberleo.net>2020-03-28 05:45:52 -0500
committerCyberLeo <cyberleo@cyberleo.net>2020-03-28 05:45:52 -0500
commit9297468fa579836e3a6a381b798feb6b78217c2d (patch)
tree53168212f427afbcf0693b534530a4af803152e9 /user/encfs/shell.patch
parenta63cc05c53a6f4c22422dc8c69808b14d87a6f6e (diff)
parentda5a69b65a8791fffa6e93366ee585f87eff136d (diff)
downloadpackages-9297468fa579836e3a6a381b798feb6b78217c2d.tar.gz
packages-9297468fa579836e3a6a381b798feb6b78217c2d.tar.bz2
packages-9297468fa579836e3a6a381b798feb6b78217c2d.tar.xz
packages-9297468fa579836e3a6a381b798feb6b78217c2d.zip
Merge branch 'master' into zfs
Diffstat (limited to 'user/encfs/shell.patch')
-rw-r--r--user/encfs/shell.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/user/encfs/shell.patch b/user/encfs/shell.patch
new file mode 100644
index 000000000..40876ca9f
--- /dev/null
+++ b/user/encfs/shell.patch
@@ -0,0 +1,22 @@
+From 4f21701c1aaeb3e5b9822231e011ac3224026a4c Mon Sep 17 00:00:00 2001
+From: Daniel Santana <daniel@santana.tech>
+Date: Sun, 9 Dec 2018 08:37:12 -0200
+Subject: [PATCH] Use /bin/sh as a fallback to SHELL in encfssh (#538)
+
+---
+ encfs/encfssh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/encfs/encfssh b/encfs/encfssh
+index fe7b502e..d9566f7d 100755
+--- a/encfs/encfssh
++++ b/encfs/encfssh
+@@ -77,7 +77,7 @@ fuse_umount() {
+ }
+
+ # Honor the SHELL environment variable to select a shell to run
+-"$SHELL"; retval=$?
++"${SHELL:-/bin/sh}"; retval=$?
+
+ # ensure that this shell isn't itself holding the mounted directory open
+ # ...but avoid terminating on failure, *or* causing a shellcheck warning for