t* My OpenBSD ports URI git clone git://git.codevoid.de/mystuff.git DIR Log DIR Files DIR Refs --- tpatch-exec_key-handler (501B) --- 1 $OpenBSD: patch-exec_key-handler,v 1.1 2019/10/03 10:29:32 kn Exp $ 2 3 Index: exec/key-handler 4 --- exec/key-handler.orig 5 +++ exec/key-handler 6 @@ -14,7 +14,7 @@ 7 8 rotate() { 9 degree="$1" 10 - tr '\n' '\0' | xargs -0 realpath | sort | uniq | while read file; do 11 + tr '\n' '\0' | xargs -0 readlink -f | sort | uniq | while read file; do 12 case "$(file -b -i "$file")" in 13 image/jpeg*) jpegtran -rotate "$degree" -copy all -outfile "$file" "$file" ;; 14 *) mogrify -rotate "$degree" "$file" ;;