bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] LibPaths::compute_bin_path typo


From: Masayuki Onjo
Subject: [Bug-apl] LibPaths::compute_bin_path typo
Date: Thu, 10 Apr 2014 01:16:05 +0900

I found typo of LibPaths.cc's compute_bin_path.
There are sizeof(plen + alen + 8) instead of sizeof(filename).
It cause "No binary found for AP..." error.

how to reproduce:

[before patch]
lambda% OLD_PATH=$PATH
lambda% which apl
/home/onjo/arch/x86_64/apl/bin/apl
lambda% PATH=/home/onjo/arch/x86_64/apl/bin
lambda% apl

                    ______ _   __ __  __    ___     ____   __
                   / ____// | / // / / /   /   |   / __ \ / /
                  / / __ /  |/ // / / /   / /| |  / /_/ // /
                 / /_/ // /|  // /_/ /   / ___ | / ____// /___
                 \____//_/ |_/ \____/   /_/  |_|/_/    /_____/

                     Welcome to GNU APL version 1.3 / 6214

                Copyright (C) 2008-2014  Dr. J端rgen Sauermann
                       Banner by FIGlet: www.figlet.org

                This program comes with ABSOLUTELY NO WARRANTY;
                          for details run: apl --gpl.

     This program is free software, and you are welcome to redistribute it
         according to the GNU Public License (GPL) version 3 or later.

No binary found for AP 1001 (interpreter path = .)
*** Failed to start APnnn: processor 1001 will not accept incoming
shared variable offers. Expect surprises.
      )OFF

Goodbye.

[after patch]
lambda% PATH=/home/onjo/arch/x86_64/apl/bin
lambda% apl

                    ______ _   __ __  __    ___     ____   __
                   / ____// | / // / / /   /   |   / __ \ / /
                  / / __ /  |/ // / / /   / /| |  / /_/ // /
                 / /_/ // /|  // /_/ /   / ___ | / ____// /___
                 \____//_/ |_/ \____/   /_/  |_|/_/    /_____/

                     Welcome to GNU APL version 1.3 / 6214

                Copyright (C) 2008-2014  Dr. J端rgen Sauermann
                       Banner by FIGlet: www.figlet.org

                This program comes with ABSOLUTELY NO WARRANTY;
                          for details run: apl --gpl.

     This program is free software, and you are welcome to redistribute it
         according to the GNU Public License (GPL) version 3 or later.


      )OFF

Goodbye.

-- 
Masayuki Onjo <address@hidden>

Attachment: LibPaths.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]