From edffbd4af9b5a6b07e6d41c2245dc3bd313e3a0e Mon Sep 17 00:00:00 2001 From: TZdyrski Date: Thu, 18 Aug 2016 11:45:07 -0700 Subject: [PATCH] ssh_filter_btrbk: update ssh_filter_btrbk.sh to use readlink bugfix for: 796b6bd9bf70d95e799e5b084088001db9d487ef Replace realpath with readlink in allowed commands. Commit 796b6bd substituted readlink for realpath in file "btrbk"; this commit propagates the change to ssh_filter_btrbk.sh. --- ChangeLog | 4 ++++ ssh_filter_btrbk.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c553399..a6234c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +btrbk-current + + * Bugfix: Replace "realpath" with "readlink" in ssh_filter_btrbk.sh + btrbk-0.23.3 * Replace "realpath -e" with "readlink -e" for mountpoint discovery diff --git a/ssh_filter_btrbk.sh b/ssh_filter_btrbk.sh index 2ddbf6e..196bb69 100755 --- a/ssh_filter_btrbk.sh +++ b/ssh_filter_btrbk.sh @@ -102,7 +102,7 @@ while [[ "$#" -ge 1 ]]; do -t|--target) allow_cmd "btrfs receive" # the following are needed if targets point to a directory - allow_cmd "realpath" + allow_cmd "readlink" allow_exact_cmd "cat /proc/self/mounts" ;;