Nmap Development mailing list archives

Re: shtool script syntax error.


From: Jamie Komodo <jamie.komodo () gmail com>
Date: Sat, 25 Jul 2009 04:02:44 -0700

On Mon, 2009-07-20 at 23:08 -0700, Jamie Komodo wrote:

When installing nmap 5.00 from bzip source (on Ubuntu 8.04.3 ), I get
an installation error when it tries to install ncat:

Installing Ncat
./shtool mkdir -f -p -m
755 /usr/local/bin /usr/local/share/ncat /usr/local/share/man/man1
chmod: changing permissions of `/usr/local/share/ncat': No such file
or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory
`/home/waydaws/downloads/build/Nmap/nmap-5.00/ncat'
make: *** [install-ncat] Error 2

****  Installation failed. Aborting package creation.

There seems to be a syntax error in shtool.  My man page for mkdir has
no "-f" option.   -p and -m make sense, of course, but -f?

Checking the script...

#   special case: "shtool install -d <dir> [...]" internally
    #   maps to "shtool mkdir -f -p -m 755 <dir> [...]"
    if [ "$opt_d" = yes ]; then
        cmd="$0 mkdir -f -p -m 755"
        if [ ".$opt_o" != . ]; then
            cmd="$cmd -o '$opt_o'"
        fi
        if [ ".$opt_g" != . ]; then
            cmd="$cmd -g '$opt_g'"
        fi
        if [ ".$opt_v" = .yes ]; then
            cmd="$cmd -v"
        fi
        if [ ".$opt_t" = .yes ]; then
            cmd="$cmd -t"
        fi
        for dir in "$@"; do
            eval "$cmd $dir" || shtool_exit $?
        done
        shtool_exit 0
    fi

Looks intentional, but I don't get it, and the install does abort, so
I'm reporting it as a bug.





OK, I get it. The "mkdir" and "-f" are shtool parameters, not a mkdir
option.  I guess I better install itl, since it doesn't appear that I
have it. 

Sorry about jumping the gun...

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: