summaryrefslogtreecommitdiff
path: root/user/command-not-found/explicit-apk-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/command-not-found/explicit-apk-path.patch')
-rw-r--r--user/command-not-found/explicit-apk-path.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/user/command-not-found/explicit-apk-path.patch b/user/command-not-found/explicit-apk-path.patch
new file mode 100644
index 000000000..b99466b75
--- /dev/null
+++ b/user/command-not-found/explicit-apk-path.patch
@@ -0,0 +1,11 @@
+--- command-not-found/command-not-found.sh.old 2017-11-30 04:52:39.000000000 +0000
++++ command-not-found/command-not-found.sh 2018-11-13 04:38:42.000000000 +0000
+@@ -21,7 +21,7 @@
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ # SOFTWARE.
+
+-results=$(apk search -xv "cmd:$1" 2>/dev/null)
++results=$(/sbin/apk search -xv "cmd:$1" 2>/dev/null)
+
+ if [ "$results" ]; then
+ printf "The program '%s' may be found in these packages:\n" "$1" >&2