# HG changeset patch # User Hans-G?nter Theisgen # Date 1643634126 -3600 # Node ID 59da344262a261393364dce70c7095f00956c1f3 # Parent 5f6c5106b1f563050dabc1322d9f3098c8d15faf replaced cp by install in davpass and ftppass diff -r 5f6c5106b1f5 -r 59da344262a2 avfs/receipt --- a/avfs/receipt Mon Jan 31 11:41:46 2022 +0000 +++ b/avfs/receipt Mon Jan 31 14:02:06 2022 +0100 @@ -42,4 +42,12 @@ # cp -a $install/usr/sbin $fs/usr cp -a $install/usr/lib/avfs $fs/usr/lib cp -a $install/usr/lib/*.so* $fs/usr/lib + + # bash not really needed + sed -i '1s|#!/bin/bash|#!/bin/sh|' $fs/usr/bin/mountavfs + sed -i '1s|#!/bin/bash|#!/bin/sh|' $fs/usr/bin/umountavfs + + # 1.1.4 against: can't create $HOME/.avfs/#dav_ctl:* + patch --strip=0 --directory=$fs --input=$stuff/patches/davpass-1.1.4 + patch --strip=0 --directory=$fs --input=$stuff/patches/ftppass-1.1.4 } diff -r 5f6c5106b1f5 -r 59da344262a2 avfs/stuff/patches/davpass-1.1.4 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/avfs/stuff/patches/davpass-1.1.4 Mon Jan 31 14:02:06 2022 +0100 @@ -0,0 +1,11 @@ +--- usr/bin/davpass.original ++++ usr/bin/davpass +@@ -72,6 +72,6 @@ + + if [ "$acct" = @ ] ; then usage; fi + +-echo $username | cp /dev/stdin $basedir/#dav_ctl:$acct/username +-echo $passwd | cp /dev/stdin $basedir/#dav_ctl:$acct/password ++echo $username | install -D /dev/stdin $basedir/#dav_ctl:$acct/username ++echo $passwd | install -D /dev/stdin $basedir/#dav_ctl:$acct/password + diff -r 5f6c5106b1f5 -r 59da344262a2 avfs/stuff/patches/ftppass-1.1.4 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/avfs/stuff/patches/ftppass-1.1.4 Mon Jan 31 14:02:06 2022 +0100 @@ -0,0 +1,13 @@ +--- usr/bin/ftppass.original ++++ usr/bin/ftppass +@@ -35,8 +35,8 @@ + stty $oldsetting + echo + +-echo $passwd | cp /dev/stdin $basedir/#ftp_ctl:$userhost/password ++echo $passwd | install -D /dev/stdin $basedir/#ftp_ctl:$userhost/password + + if [ -e "$basedir/#ucftp_ctl" ]; then +- echo $passwd | cp /dev/stdin $basedir/#ucftp_ctl:$userhost/password ++ echo $passwd | install -D /dev/stdin $basedir/#ucftp_ctl:$userhost/password + fi