diff options
Make otp script more secure + other improvements (#1190)
Make a temporary directory in $XDG_RUNTIME_DIR instead of $PASSWORD_STORE_DIR.
$XDG_RUNTIME_DIR defaults to /run/user/$uid/. This directory has the security advantage of only being readable and writable by the current user and being mounted in RAM, causing the screenshot to be fully wiped on shutdown and not needing shred, which doesn't work reliably on SSD's.
Also quoted $dir, for the off chance someone has spaces in their $PASSWORD_STORE_DIR.
Removed the check for xclip and the $issuer and $name variables, as they are unused.
If you're wondering why echo is piped into dmenu, on my system dmenu hung when called without the pipe, causing the whole script to freeze.
Diffstat (limited to '.config/x11%25252525252525252525252525253fid%25252525252525252525252525253d46050193fc2788ae22972c3d44de767a7d4db936%252525252525252525252525253fid%252525252525252525252525253de014987bf08a9ff668f1db5b57444bae2ee64bba%2525252525252525252525253fid%2525252525252525252525253de014987bf08a9ff668f1db5b57444bae2ee64bba&id2%2525252525252525252525253d9d1958968f583759c7593e906a82f5901dc53229%25252525252525252525253fid%25252525252525252525253de014987bf08a9ff668f1db5b57444bae2ee64bba%252525252525252525253fid%252525252525252525253de014987bf08a9ff668f1db5b57444bae2ee64bba%2525252525252525253fid%2525252525252525253de014987bf08a9ff668f1db5b57444bae2ee64bba%25252525252525253fid%25252525252525253d7871fd80b29afa3fbab9bbecd6092b303b07c29f%252525252525253fid%252525252525253d7871fd80b29afa3fbab9bbecd6092b303b07c29f&id2%252525252525253dae0ad289a10e0cd911489ce08f8d0fed6332d348%2525252525253fid%2525252525253d7871fd80b29afa3fbab9bbecd6092b303b07c29f%25252525253fid%25252525253d7871fd80b29afa3fbab9bbecd6092b303b07c29f&id2%25252525253dae0ad289a10e0cd911489ce08f8d0fed6332d348%252525253fid%252525253d7871fd80b29afa3fbab9bbecd6092b303b07c29f&id2%252525253dae0ad289a10e0cd911489ce08f8d0fed6332d348%2525253fid%2525253d7871fd80b29afa3fbab9bbecd6092b303b07c29f&id2%2525253dae0ad289a10e0cd911489ce08f8d0fed6332d348%25253fid%25253d7871fd80b29afa3fbab9bbecd6092b303b07c29f&id2%25253dae0ad289a10e0cd911489ce08f8d0fed6332d348%253fid%253d7871fd80b29afa3fbab9bbecd6092b303b07c29f&id2%253dae0ad289a10e0cd911489ce08f8d0fed6332d348%3fid%3d7871fd80b29afa3fbab9bbecd6092b303b07c29f?id=7871fd80b29afa3fbab9bbecd6092b303b07c29f')
0 files changed, 0 insertions, 0 deletions