dot

packages and services management
Log | Files | Refs | README

commit 6245ebf6417e0743a2eea7c0773673f28d0f9ca4
parent fb4e7c773537e136d7dd63f57fc0f5700705e94d
Author: Josuah Demangeon <mail@josuah.net>
Date:   Fri, 30 Mar 2018 11:39:35 +0200

throwing rhosts away (not supported by libmusl)

Diffstat:
Mbin/dvtm-status | 1-
Mbin/edit | 2+-
Mbin/io | 2+-
Tbin/o | 0
Mbin/xdg-abduco | 4++--
Mbin/xdg-open | 4+---
Mmblaze/filter | 2+-
Mpack/u9fs/build | 3+++
8 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/bin/dvtm-status b/bin/dvtm-status @@ -13,4 +13,3 @@ done & PID="${!}" dvtm -s "$FIFO" "$@" 2> /dev/null kill "$PID" wait "$PID" 2> /dev/null -rm -f "$FIFO" diff --git a/bin/edit b/bin/edit @@ -8,4 +8,4 @@ cd "$(dirname "$1")" -exec vi "$1" +exec vi "$(basename "$1")" diff --git a/bin/io b/bin/io @@ -17,7 +17,7 @@ fi h='----------------------------------------------------------------------------' -exec xdg-open "$({ +exec xdg-abduco xdg-open "$({ xdg-abduco printf '#%s\n' "$h$h$h$h$h$h$h$h$h$h$h$hh$h$h" cat "$HOME/.cache/find" diff --git a/bin/o b/bin/o diff --git a/bin/xdg-abduco b/bin/xdg-abduco @@ -15,7 +15,7 @@ touch "$dir/names" grep -e "^$(abduco | sed -rn 's/.* ([0-9]+)$/\1/p') " "$dir/names" | sort -k2 -uo "$dir/names" -# get the reas path name +# get the real path name [ ! -h "$2" ] || set -- "$1" "$(readlink -f "$2")" [ ! -e "$2" ] || set -- "$1" "$(cd "$(dirname "$2")"; pwd)/$(basename "$2")" [ ! -d "$2" ] || set -- "$1" "$(cd "$2"; pwd)" @@ -24,7 +24,7 @@ case "$#" in (0) cut -f 2 "$dir/names" ;; -(2) +(*) printf '\033]0;%s\a' "$2" 1>&2 hash="$(printf %s "$2" | cksum | cut -d ' ' -f 1)" diff --git a/bin/xdg-open b/bin/xdg-open @@ -7,8 +7,6 @@ IFS=' ' read scheme user pass host port path << EOF $(xdg-uri "$1") EOF -[ "$ABDUCO" ] || exec xdg-abduco "$0" "$@" - case "$(tty)" in (/dev/pts/*|/dev/ttyp*) ;; @@ -129,7 +127,7 @@ case "$1" in exec sftp -P "$port" "$host" ;; (ssh://*) - [ "$port" = . ] && port="" || port="-P $port" + [ "$port" = . ] && port="" || port="-p $port" [ "$user" = . ] && user="" || user="$user@" [ "$pass" = . ] && pass="" || pass="$" exec ssh $port "$user$host" diff --git a/mblaze/filter b/mblaze/filter @@ -45,7 +45,7 @@ openbsd.org/announce "List-ID" "*announce.openbsd.org*" openbsd.org/tech "List-ID" "*tech.openbsd.org*" paypal.com "From" "*paypal.*" reddit.com "From" "*@reddit.*" -reddit.com "From" "*@redditmail.com" +reddit.com "From" "*@redditmail.com*" researchgate.net "From" "*@researchgate.*" researchgate.net "From" "*@researchgatemail.*" sabotage.tech "Mailing-List" "*sabotage*@lists.openwall.com*" diff --git a/pack/u9fs/build b/pack/u9fs/build @@ -1,5 +1,8 @@ #!/bin/sh -ex +sed '4 s/.*/#define ruserok(a, b, c, d) (-1)/' authrhosts.c > authrhosts.c.sed +mv authrhosts.c.sed authrhosts.c + mkdir -p "$PREFIX/bin" make DESTROOT="$PREFIX" install mkdir -p "$PREFIX/share/man/man8"