wok rev 24341

replaced cp by install in davpass and ftppass
author Hans-G?nter Theisgen
date Mon Jan 31 14:02:06 2022 +0100 (2022-01-31)
parents 5f6c5106b1f5
children 0bf24f90afd9
files avfs/receipt avfs/stuff/patches/davpass-1.1.4 avfs/stuff/patches/ftppass-1.1.4
line diff
     1.1 --- a/avfs/receipt	Mon Jan 31 11:41:46 2022 +0000
     1.2 +++ b/avfs/receipt	Mon Jan 31 14:02:06 2022 +0100
     1.3 @@ -42,4 +42,12 @@
     1.4  #	cp -a $install/usr/sbin		$fs/usr
     1.5  	cp -a $install/usr/lib/avfs	$fs/usr/lib
     1.6  	cp -a $install/usr/lib/*.so*	$fs/usr/lib
     1.7 +
     1.8 +	# bash not really needed
     1.9 +	sed -i '1s|#!/bin/bash|#!/bin/sh|'	$fs/usr/bin/mountavfs
    1.10 +	sed -i '1s|#!/bin/bash|#!/bin/sh|'	$fs/usr/bin/umountavfs
    1.11 +
    1.12 +	# 1.1.4 against: can't create $HOME/.avfs/#dav_ctl:*
    1.13 +	patch --strip=0 --directory=$fs --input=$stuff/patches/davpass-1.1.4
    1.14 +	patch --strip=0 --directory=$fs --input=$stuff/patches/ftppass-1.1.4
    1.15  }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/avfs/stuff/patches/davpass-1.1.4	Mon Jan 31 14:02:06 2022 +0100
     2.3 @@ -0,0 +1,11 @@
     2.4 +--- usr/bin/davpass.original
     2.5 ++++ usr/bin/davpass
     2.6 +@@ -72,6 +72,6 @@
     2.7 + 
     2.8 + if [ "$acct" = @ ] ; then usage; fi
     2.9 + 
    2.10 +-echo $username | cp /dev/stdin $basedir/#dav_ctl:$acct/username
    2.11 +-echo $passwd | cp /dev/stdin $basedir/#dav_ctl:$acct/password
    2.12 ++echo $username | install -D /dev/stdin $basedir/#dav_ctl:$acct/username
    2.13 ++echo $passwd | install -D /dev/stdin $basedir/#dav_ctl:$acct/password
    2.14 + 
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/avfs/stuff/patches/ftppass-1.1.4	Mon Jan 31 14:02:06 2022 +0100
     3.3 @@ -0,0 +1,13 @@
     3.4 +--- usr/bin/ftppass.original
     3.5 ++++ usr/bin/ftppass
     3.6 +@@ -35,8 +35,8 @@
     3.7 + stty $oldsetting
     3.8 + echo
     3.9 + 
    3.10 +-echo $passwd | cp /dev/stdin $basedir/#ftp_ctl:$userhost/password
    3.11 ++echo $passwd | install -D /dev/stdin $basedir/#ftp_ctl:$userhost/password
    3.12 + 
    3.13 + if [ -e "$basedir/#ucftp_ctl" ]; then
    3.14 +-    echo $passwd | cp /dev/stdin $basedir/#ucftp_ctl:$userhost/password
    3.15 ++    echo $passwd | install -D /dev/stdin $basedir/#ucftp_ctl:$userhost/password
    3.16 + fi