Skip to content
Snippets Groups Projects
Commit cb91d602 authored by Simon McVittie's avatar Simon McVittie
Browse files

pv-adverb: Treat --lock-file as a filename


Otherwise pv-adverb will exit unsuccessfully when asked to lock a file
in a non-UTF-8 directory.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent af00e63c
No related branches found
No related tags found
1 merge request!354Flag most G_OPTION_ARG_CALLBACK options with G_OPTION_FLAG_FILENAME
Pipeline #16533 passed
......@@ -799,7 +799,7 @@ static GOptionEntry options[] =
"MODULE" },
{ "lock-file", '\0',
G_OPTION_FLAG_NONE, G_OPTION_ARG_CALLBACK, opt_lock_file_cb,
G_OPTION_FLAG_FILENAME, G_OPTION_ARG_CALLBACK, opt_lock_file_cb,
"Open the given file and lock it, affected by options appearing "
"earlier on the command-line. May be repeated.",
NULL },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment