diff options
author | Wolfram Schlich <wschlich@gentoo.org> | 2005-09-21 20:29:35 +0000 |
---|---|---|
committer | Wolfram Schlich <wschlich@gentoo.org> | 2005-09-21 20:29:35 +0000 |
commit | 84ee6fee1e2e878a58a543978ae9a5caa26ab065 (patch) | |
tree | 4fc087d5ea741db122e3c1f98dab3cd1fe772c6e /net-analyzer/nmbscan/files | |
parent | Changed check_license to explicitly list license to check. (diff) | |
download | gentoo-2-84ee6fee1e2e878a58a543978ae9a5caa26ab065.tar.gz gentoo-2-84ee6fee1e2e878a58a543978ae9a5caa26ab065.tar.bz2 gentoo-2-84ee6fee1e2e878a58a543978ae9a5caa26ab065.zip |
add 'head' parameter fix
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-analyzer/nmbscan/files')
-rw-r--r-- | net-analyzer/nmbscan/files/nmbscan-1.2.4-head.diff | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/net-analyzer/nmbscan/files/nmbscan-1.2.4-head.diff b/net-analyzer/nmbscan/files/nmbscan-1.2.4-head.diff new file mode 100644 index 000000000000..3aa0343de05f --- /dev/null +++ b/net-analyzer/nmbscan/files/nmbscan-1.2.4-head.diff @@ -0,0 +1,27 @@ +--- nmbscan.orig 2005-09-21 22:10:05.223491664 +0200 ++++ nmbscan 2005-09-21 22:11:59.215162296 +0200 +@@ -376,7 +376,7 @@ + + function get_server_and_os_by_ip + { +- V=$(smbclient -L ${2:-$1} -I $1 -U % 2>&1 | grep '^Domain'| sed 's#.*OS=\[\(.*\)\].*Server=\[\(.*\)\].*#\2/\1#' | head -1) ++ V=$(smbclient -L ${2:-$1} -I $1 -U % 2>&1 | grep '^Domain'| sed 's#.*OS=\[\(.*\)\].*Server=\[\(.*\)\].*#\2/\1#' | head -n 1) + echo ${V:--/-} + } + +@@ -424,13 +424,13 @@ + + function get_nmbname + { +- V=$(nmblookup -A $1 2>&1 | grep "<20>" | head -1 | awk '{print $1}') ++ V=$(nmblookup -A $1 2>&1 | grep "<20>" | head -n 1 | awk '{print $1}') + echo ${V:--} + } + + function get_domain + { +- V=$(nmblookup -A $1 2>&1 | grep "<1e>" | head -1 | awk '{print $1}') ++ V=$(nmblookup -A $1 2>&1 | grep "<1e>" | head -n 1 | awk '{print $1}') + echo ${V:--} + } + |