861ac185a6
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
17 lines
597 B
Diff
17 lines
597 B
Diff
diff --git src/profile.c src/profile.c
|
|
index 3de9fb5..b7dc71f 100644
|
|
--- a/src/profile.c
|
|
+++ b/src/profile.c
|
|
@@ -2974,12 +2974,8 @@ GString *save_user_settings(GtkWidget *widget, struct Window *win_data)
|
|
// g_debug("save_user_settings(): profile = %s", profile);
|
|
|
|
// g_debug("\n%s", contents->str);
|
|
-# ifdef BSD
|
|
gchar resolved_patch[PATH_MAX+1];
|
|
gchar *real_file_name = g_strdup(realpath((const gchar *)profile, resolved_patch));
|
|
-# else
|
|
- gchar *real_file_name = canonicalize_file_name((const gchar *)profile);
|
|
-# endif
|
|
if (real_file_name==NULL)
|
|
{
|
|
//if (access(profile, F_OK))
|