summaryrefslogtreecommitdiffstats
path: root/src/keyfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyfile.c')
-rw-r--r--src/keyfile.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/keyfile.c b/src/keyfile.c
index 8000244..69071fe 100644
--- a/src/keyfile.c
+++ b/src/keyfile.c
@@ -40,6 +40,7 @@ void load_cmdparams_from_file (const gchar *filename)
cmd_params.level = g_key_file_get_string (keyfile, "ncpmount_options", "level", NULL);
cmd_params.charset = g_key_file_get_string (keyfile, "ncpmount_options", "charset", NULL);
cmd_params.codepage = g_key_file_get_string (keyfile, "ncpmount_options", "codepage", NULL);
+ cmd_params.extraoptions = g_key_file_get_string (keyfile, "ncpmount_options", "extraoptions", NULL);
cmd_params.mount_point = g_key_file_get_string (keyfile, "ncpmount_options", "mount_point", NULL);
@@ -144,6 +145,11 @@ void save_cmdparams_to_file (const gchar *filename)
g_key_file_set_string (keyfile, "ncpmount_options", "codepage", cmd_params.codepage);
}
+ if(cmd_params.extraoptions != NULL)
+ {
+ g_key_file_set_string (keyfile, "ncpmount_options", "extraoptions", cmd_params.extraoptions);
+ }
+
if(cmd_params.mount_point != NULL)
{
g_key_file_set_string (keyfile, "ncpmount_options", "mount_point", cmd_params.mount_point);