summaryrefslogtreecommitdiff
path: root/src/ostree/ot-builtin-gpg-sign.c
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2017-04-25 19:14:12 +0100
committerAtomic Bot <atomic-devel@projectatomic.io>2017-04-27 13:43:49 +0000
commitc41860059490c9b29846fd492e938aec2f5dc976 (patch)
treedf83635725570e69715c485c8e7cd47308192247 /src/ostree/ot-builtin-gpg-sign.c
parent90b24a8d43a978da57add31b12f2b71c5179cfdc (diff)
downloadostree-c41860059490c9b29846fd492e938aec2f5dc976.tar.gz
ostree: Use G_OPTION_ARG_FILENAME where appropriate
Instead of using G_OPTION_ARG_STRING, use G_OPTION_ARG_FILENAME, which handles filename encoding conversion differently from the locale conversion which G_OPTION_ARG_STRING. This will fix argument handling on systems where the filename encoding is not the same as the locale encoding (which is fairly unlikely since most systems use UTF-8). Signed-off-by: Philip Withnall <withnall@endlessm.com> Closes: #810 Approved by: cgwalters
Diffstat (limited to 'src/ostree/ot-builtin-gpg-sign.c')
-rw-r--r--src/ostree/ot-builtin-gpg-sign.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ostree/ot-builtin-gpg-sign.c b/src/ostree/ot-builtin-gpg-sign.c
index c19ec682..0ef2be8b 100644
--- a/src/ostree/ot-builtin-gpg-sign.c
+++ b/src/ostree/ot-builtin-gpg-sign.c
@@ -32,7 +32,7 @@ static char *opt_gpg_homedir;
static GOptionEntry options[] = {
{ "delete", 'd', 0, G_OPTION_ARG_NONE, &opt_delete, "Delete signatures having any of the GPG KEY-IDs" },
- { "gpg-homedir", 0, 0, G_OPTION_ARG_STRING, &opt_gpg_homedir, "GPG Homedir to use when looking for keyrings", "HOMEDIR" },
+ { "gpg-homedir", 0, 0, G_OPTION_ARG_FILENAME, &opt_gpg_homedir, "GPG Homedir to use when looking for keyrings", "HOMEDIR" },
{ NULL }
};