diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2010-10-11 22:18:24 +0200 |
---|---|---|
committer | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2010-10-11 22:38:50 +0200 |
commit | ad50a18730f13c931bce047ba7134e9e783d715b (patch) | |
tree | 7a388b65f4c2ef87ebeea58dbc3d0c58f5eb9dfa /recipes/gputty | |
parent | bd49bbc1067fae650759f7e53033498b4f77d27f (diff) | |
download | openembedded-ad50a18730f13c931bce047ba7134e9e783d715b.tar.gz |
gputty : moved unused files to obsolete dir
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/gputty')
-rw-r--r-- | recipes/gputty/gputty/conf.patch | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/recipes/gputty/gputty/conf.patch b/recipes/gputty/gputty/conf.patch deleted file mode 100644 index deb4548092..0000000000 --- a/recipes/gputty/gputty/conf.patch +++ /dev/null @@ -1,26 +0,0 @@ -# Added support to store the configuration in the user home directory -# Released under the original terms of the package -# Submitted ustream 12/03/04 - ---- gputty-0.9.7/src/gputty.c 2004-06-28 06:23:36.000000000 -0700 -+++ gputty-0.9.7.new/src/gputty.c 2004-07-12 13:32:41.632259216 -0700 -@@ -424,8 +424,18 @@ - (void*)gtk_entry_get_text(GTK_ENTRY(g->hn_eusername))); - if(g->config == NULL) - fprintf(stderr, "%s", "gputty: not saving configuration\n"); -- else if(config_save(g->config, ".gputty") != 0) -+ else { -+ char filename[64]; -+ -+ if (getenv("HOME")) -+ snprintf(filename, sizeof(filename) - 1, -+ "%s/.gputty\n", getenv("HOME")); -+ else -+ strncpy(filename, ".gputty", sizeof(filename) - 1); -+ -+ if(config_save(g->config, filename) != 0) - fprintf(stderr, "%s", "gputty: an error occured while saving configuration\n"); -+ } - gtk_main_quit(); - } - |