diff options
author | Jonas Smedegaard <dr@jones.dk> | 2013-03-08 19:29:38 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2013-03-09 02:29:30 +0100 |
commit | 24a0dde01d3b64d36773e06eeb300d94992b2886 (patch) | |
tree | 38ad3bea0c509cee312e1da6b3ecea3155ddbbfe /src/share/list_primary_fingerprints | |
parent | 71576e054b4d47085f7620749660ca2bf1df47b0 (diff) |
Pass only single commands through su wrapper
It is a healthy coding practice to keep each argument separate when
executing system calls, i.e. quote each variable separately instead of
relying on whitespace to indicate argument separation.
Quoting shell-inside-shell is tricky to do right, and gets trickier when
more than a single command is wrapped together.
This patch simplifies convoluted shell calls to contain only one command
each.
Diffstat (limited to 'src/share/list_primary_fingerprints')
-rw-r--r-- | src/share/list_primary_fingerprints | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/share/list_primary_fingerprints b/src/share/list_primary_fingerprints new file mode 100644 index 0000000..17f299c --- /dev/null +++ b/src/share/list_primary_fingerprints @@ -0,0 +1,5 @@ +# -*-shell-script-*- +# This should be sourced by bash (though we welcome changes to make it POSIX sh compliant) + +. "${SYSSHAREDIR}/common" +list_primary_fingerprints |