mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 14:46:22 +00:00
Fix reading/writing linked files
"base" was not really base but the filename :-) Fix https://github.com/profanity-im/profanity/issues/1362
This commit is contained in:
@@ -698,7 +698,7 @@ static void _random_bytes_init(void)
|
||||
gsize g_data_size;
|
||||
gchar *g_accounts_data = g_key_file_to_data(rndbytes, &g_data_size, NULL);
|
||||
|
||||
gchar *base = g_path_get_basename(rndbytes_loc);
|
||||
gchar *base = g_path_get_dirname(rndbytes_loc);
|
||||
gchar *true_loc = get_file_or_linked(rndbytes_loc, base);
|
||||
g_file_set_contents(true_loc, g_accounts_data, g_data_size, NULL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user