Public bug reported: Binary package hint: less
lesspipe hangs probably in loop when a RAR archive is encrypted in its headers (see attachment or `rar a -hppassword arkNOT.rar file`) simple solution: --- lesspipe 2010-04-17 20:59:08.000000000 +0200 +++ lesspipeFIXRAR 2010-04-17 20:46:56.249990602 +0200 @@ -164,8 +164,8 @@ else echo "No pdftotext available"; fi ;; *.rar|*.r[0-9][0-9]) - if [ -x "`which rar`" ]; then rar v "$1" - elif [ -x "`which unrar`" ]; then unrar v "$1" + if [ -x "`which rar`" ]; then rar v -p- "$1" + elif [ -x "`which unrar`" ]; then unrar v -p- "$1" else echo "No rar or unrar available"; fi ;; *.rpm) which will output none of the archive contents if the archive is fully encrypted (also header as per example file) the output will be like: RAR 3.90 beta 2 Copyright (c) 1993-2009 Alexander Roshal 3 Jun 2009 Shareware version Type RAR -? for help /home/tst/SVN/arkNOT.rar (END) At least it does not hang the shell terminal. Good solution may be to always ask for password for RAR and then pass it to rar/unrar via the -p swithch (in case user pass null password on input then it would be -p-) ** Affects: less (Ubuntu) Importance: Undecided Status: New ** Tags: less lesspipe rar unrar -- less loops with lesspipe on RAR archive files with header encrypted https://bugs.launchpad.net/bugs/565534 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs