Make ipso(1) flush/load factotum keys only if 'factotum' secstore file was indeed in edit list. This makes it suitable for editing other files on secstore too. Reference: /n/sources/patch/applied/ipso-flush Date: Thu Sep 29 13:17:56 CES 2011 Signed-off-by: yarikos@gmail.com --- /rc/bin/ipso Thu Sep 29 13:15:21 2011 +++ /rc/bin/ipso Thu Sep 29 13:15:18 2011 @@ -131,13 +131,13 @@ # edit the files if(~ $edit yes) $editor `{for(i in $files) basename $i} -if(~ $flush yes ){ +if(~ $flush yes && ~ factotum $files){ echo flushing old keys echo delkey > /mnt/factotum/ctl } -if(~ $load yes){ +if(~ $load yes && ~ factotum $files){ echo loading factotum keys - if (~ factotum $files) read -m < factotum > /mnt/factotum/ctl + read -m < factotum > /mnt/factotum/ctl } # copy the files back @@ -151,8 +151,6 @@ exit password } echo ''''$i'''' copied to $name - if(~ $i factotum) - read -m < $i > /mnt/factotum/ctl case [xXqQ]* exit case [nN]* *