diff options
author | Slatian <baschdel@disroot.org> | 2024-01-23 06:14:06 +0000 |
---|---|---|
committer | Simon Lees <simon@simotek.net> | 2024-01-23 06:14:06 +0000 |
commit | 9b7d253ca07b80fbc201c5cf5b7f14a49bd09b3f (patch) | |
tree | 889a7f74f6f08da9d73df68e09d8781df0b19c24 /scripts/xdg-email.in | |
parent | 8f5bae73b5a3401525e9a7831da11a8bda0be170 (diff) |
Add xdg-realpath to better handle Canonicalizing filenames
This replaces calls to `realpath -f` which isn't available on all shells. (fix #66)
Diffstat (limited to 'scripts/xdg-email.in')
-rw-r--r-- | scripts/xdg-email.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/xdg-email.in b/scripts/xdg-email.in index fc24886..ca9323a 100644 --- a/scripts/xdg-email.in +++ b/scripts/xdg-email.in @@ -377,7 +377,7 @@ while [ $# -gt 0 ] ; do exit_failure_syntax "file argument missing for --attach option" fi check_input_file "$1" - file="$(readlink -f "$1")" # Normalize path + file="$(xdg_realpath "$1")" # Normalize path if [ -z "$file" ] || [ ! -f "$file" ] ; then exit_failure_file_missing "file '$1' does not exist" fi |