if ! ( which lockfile-create >/dev/null 2>/dev/null ) ; then
if ! ( which lockfile >/dev/null ); then
failure "Neither lockfile-create nor lockfile are in the path!"
+ fi
use_lockfileprogs=
fi
;;
touch)
if [ -n "$use_lockfileprogs" ] ; then
- lockfile-touch "$file"
+ lockfile-touch --oneshot "$file"
else
- # Nothing to do here
+ : Nothing to do here
fi
;;
remove)
*)
failure "bad argument for lock subfunction '$action'"
esac
-}
+
# check that characters are in a string (in an AND fashion).
# used for checking key capability
esac
# touch the lockfile, for good measure.
- lock touch --oneshot "$KNOWN_HOSTS"
+ lock touch "$KNOWN_HOSTS"
done
# remove the lockfile and the trap
esac
# touch the lockfile, for good measure.
- lock touch --oneshot "$AUTHORIZED_KEYS"
+ lock touch "$AUTHORIZED_KEYS"
done
# remove the lockfile and the trap