File: ldm-askpass

package info (click to toggle)
ltsp 0.99debian11
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 976 kB
  • ctags: 103
  • sloc: sh: 1,320; python: 485; ansic: 436; lex: 152; makefile: 129; yacc: 58
file content (15 lines) | stat: -rwxr-xr-x 160 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

fd="$LDM_ASKPASS_FD"

if [ -z "$fd" ]; then
    echo "LDM_ASKPASS_FD not set" >&2
    exit 1
fi

read password <&$fd
cat <<EOF
$password
EOF

exit 0