author | Myhailo Danylenko <isbear@ukrpost.net> |
Wed, 07 Apr 2010 21:18:19 +0300 | |
changeset 16 | 543bd8927354 |
parent 15 | fbcad36ca352 |
child 17 | 2c47fa36d473 |
permissions | -rw-r--r-- |
0 | 1 |
/* |
2 |
* env.c -- Tampering with mcabber's environment |
|
3 |
* |
|
4 |
* Copyrigth (C) 2009 Myhailo Danylenko <isbear@ukrpost.net> |
|
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or modify |
|
7 |
* it under the terms of the GNU General Public License as published by |
|
8 |
* the Free Software Foundation; either version 2 of the License, or (at |
|
9 |
* your option) any later version. |
|
10 |
* |
|
11 |
* This program is distributed in the hope that it will be useful, but |
|
12 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
14 |
* General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU General Public License |
|
17 |
* along with this program; if not, write to the Free Software |
|
18 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
|
19 |
* USA |
|
20 |
*/ |
|
21 |
||
22 |
#include <glib.h> |
|
23 |
#include <string.h> |
|
24 |
#include <stdlib.h> |
|
3 | 25 |
#include <unistd.h> |
26 |
#include <errno.h> |
|
0 | 27 |
|
14
61d94594e8fb
Fix compilation warnings
Myhailo Danylenko <isbear@ukrpost.net>
parents:
13
diff
changeset
|
28 |
#include <mcabber/commands.h> |
5
da2fdd072650
Change mcabber headers naming scheme
Myhailo Danylenko <isbear@ukrpost.net>
parents:
4
diff
changeset
|
29 |
#include <mcabber/utils.h> |
da2fdd072650
Change mcabber headers naming scheme
Myhailo Danylenko <isbear@ukrpost.net>
parents:
4
diff
changeset
|
30 |
#include <mcabber/compl.h> |
da2fdd072650
Change mcabber headers naming scheme
Myhailo Danylenko <isbear@ukrpost.net>
parents:
4
diff
changeset
|
31 |
#include <mcabber/logprint.h> |
11
dc7bcc0fa5e1
New module loading scheme
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
32 |
#include <mcabber/modules.h> |
dc7bcc0fa5e1
New module loading scheme
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
33 |
|
12
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
34 |
#include "config.h" |
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
35 |
|
11
dc7bcc0fa5e1
New module loading scheme
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
36 |
static void env_load (void); |
dc7bcc0fa5e1
New module loading scheme
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
37 |
static void env_unload (void); |
dc7bcc0fa5e1
New module loading scheme
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
38 |
|
12
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
39 |
#define DESCRIPTION ( "Some debugging routines\nProvides commands /env and /cd" ) |
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
40 |
|
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
41 |
static module_info_t info_env_experimental = { |
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
42 |
.branch = "experimental", |
16
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
43 |
#ifndef HAVE_CMD_ID |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
44 |
.api = 20, |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
45 |
#elif defined HAVE_CMD_SAFE |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
46 |
.api = 24, |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
47 |
#else |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
48 |
.api = 23, |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
49 |
#endif |
12
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
50 |
.version = PROJECT_VERSION, |
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
51 |
.description = DESCRIPTION, |
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
52 |
.requires = NULL, |
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
53 |
.init = env_load, |
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
54 |
.uninit = env_unload, |
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
55 |
.next = &info_env_experimental, |
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
56 |
}; |
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
57 |
|
11
dc7bcc0fa5e1
New module loading scheme
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
58 |
module_info_t info_env = { |
12
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
59 |
.branch = "dev", |
15 | 60 |
.api = 13, |
12
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
61 |
.version = PROJECT_VERSION, |
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
62 |
.description = DESCRIPTION, |
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
63 |
.requires = NULL, |
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
64 |
.init = env_load, |
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
65 |
.uninit = env_unload, |
14cd74b518ea
Use new module struct with apis
Myhailo Danylenko <isbear@ukrpost.net>
parents:
11
diff
changeset
|
66 |
.next = &info_env_experimental, |
11
dc7bcc0fa5e1
New module loading scheme
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
67 |
}; |
0 | 68 |
|
16
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
69 |
#ifdef HAVE_CMD_ID |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
70 |
static gpointer env_env_cmid = NULL; |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
71 |
static gpointer env_cd_cmid = NULL; |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
72 |
#ifdef HAVE_CMD_SAFE |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
73 |
static gboolean env_env_set_safe = FALSE; |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
74 |
static gboolean env_cd_set_safe = FALSE; |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
75 |
#endif |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
76 |
#endif |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
77 |
|
0 | 78 |
extern char **environ; |
79 |
||
4
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
80 |
// /env [option [= [value]]] |
0 | 81 |
static void do_env (char *arg) |
82 |
{ |
|
4
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
83 |
if (!*arg) { |
0 | 84 |
// print full variables list |
85 |
GSList *vars = NULL; |
|
86 |
int max = 0; |
|
87 |
||
88 |
{ |
|
89 |
char **envvar; |
|
90 |
||
91 |
for (envvar = environ; *envvar; ++envvar) { |
|
92 |
char *end = strchr (*envvar, '='); |
|
93 |
||
94 |
if (end) { |
|
95 |
int len = end - *envvar; |
|
96 |
char *name = g_strndup (*envvar, len); |
|
97 |
||
98 |
if (len > max) |
|
99 |
max = len; |
|
100 |
||
101 |
vars = g_slist_prepend (vars, name); |
|
102 |
} |
|
103 |
} |
|
104 |
} |
|
105 |
||
106 |
if (max) { |
|
4
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
107 |
gchar *format = g_strdup_printf ("Env %%-%ds = %%s", max); |
0 | 108 |
GSList *eel; |
109 |
||
110 |
vars = g_slist_sort (vars, (GCompareFunc) strcmp); |
|
111 |
||
112 |
for (eel = vars; eel; eel = eel->next) { |
|
113 |
char *name = (char *) eel->data; |
|
114 |
char *value = getenv (name); |
|
115 |
||
13
dbb001e9f800
Use new scr_* functions
Myhailo Danylenko <isbear@ukrpost.net>
parents:
12
diff
changeset
|
116 |
scr_log_print (LPRINT_NORMAL, format, name, value); |
0 | 117 |
|
118 |
g_free (name); |
|
119 |
} |
|
120 |
||
121 |
g_free (format); |
|
122 |
} |
|
123 |
||
124 |
g_slist_free (vars); |
|
125 |
||
4
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
126 |
} else { |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
127 |
|
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
128 |
char *varend = strchr (arg, '='); |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
129 |
|
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
130 |
if (!varend) { |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
131 |
// print variable alone |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
132 |
char *value = getenv (arg); |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
133 |
|
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
134 |
if (value) |
13
dbb001e9f800
Use new scr_* functions
Myhailo Danylenko <isbear@ukrpost.net>
parents:
12
diff
changeset
|
135 |
scr_log_print (LPRINT_NORMAL, "Env %s = %s", arg, value); |
4
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
136 |
|
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
137 |
} else if (varend == arg) |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
138 |
|
13
dbb001e9f800
Use new scr_* functions
Myhailo Danylenko <isbear@ukrpost.net>
parents:
12
diff
changeset
|
139 |
scr_log_print (LPRINT_NORMAL, "You must specify variable name."); |
4
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
140 |
|
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
141 |
else { |
0 | 142 |
|
4
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
143 |
char *argstart = varend + 1; |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
144 |
char *var; |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
145 |
|
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
146 |
for (varend--; varend > arg && *varend == ' '; --varend); |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
147 |
|
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
148 |
var = g_strndup (arg, varend - arg + 1); |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
149 |
|
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
150 |
while (!*argstart && *argstart == ' ') |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
151 |
++argstart; |
0 | 152 |
|
4
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
153 |
if (*argstart) |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
154 |
// set variable |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
155 |
setenv (var, argstart, 1); |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
156 |
else |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
157 |
// unset variable |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
158 |
unsetenv (var); |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
159 |
|
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
160 |
g_free (var); |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
161 |
} |
2c5225ab6eb7
Changed command syntax to allow unsetting
Myhailo Danylenko <isbear@ukrpost.net>
parents:
3
diff
changeset
|
162 |
} |
0 | 163 |
} |
164 |
||
3 | 165 |
// /cd [path] |
166 |
static void do_cd (char *arg) |
|
167 |
{ |
|
168 |
if (!*arg) { // get |
|
169 |
char cwd[256]; |
|
170 |
if (getcwd (cwd, 256) == NULL) |
|
13
dbb001e9f800
Use new scr_* functions
Myhailo Danylenko <isbear@ukrpost.net>
parents:
12
diff
changeset
|
171 |
scr_log_print (LPRINT_NORMAL, "Cannot obtain current working directory: %s.", strerror (errno)); |
3 | 172 |
else |
13
dbb001e9f800
Use new scr_* functions
Myhailo Danylenko <isbear@ukrpost.net>
parents:
12
diff
changeset
|
173 |
scr_log_print (LPRINT_NORMAL, "%s", cwd); |
3 | 174 |
} else if (chdir (arg) == -1) // set |
13
dbb001e9f800
Use new scr_* functions
Myhailo Danylenko <isbear@ukrpost.net>
parents:
12
diff
changeset
|
175 |
scr_log_print (LPRINT_NORMAL, "Cannot change current working directory: %s.", strerror (errno)); |
3 | 176 |
} |
177 |
||
11
dc7bcc0fa5e1
New module loading scheme
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
178 |
static void env_load (void) |
0 | 179 |
{ |
180 |
// command |
|
16
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
181 |
#ifndef HAVE_CMD_ID |
0 | 182 |
cmd_add ("env", "", 0, 0, do_env, NULL); |
3 | 183 |
cmd_add ("cd", "", COMPL_FILENAME, 0, do_cd, NULL); |
16
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
184 |
#else |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
185 |
env_env_cmid = cmd_add ("env", "", 0, 0, do_env, NULL); |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
186 |
env_cd_cmid = cmd_add ("cd", "", COMPL_FILENAME, 0, do_cd, NULL); |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
187 |
#ifdef HAVE_CMD_SAFE |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
188 |
env_env_set_safe = cmd_set_safe ("env", TRUE); |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
189 |
env_cd_set_safe = cmd_set_safe ("cd", TRUE); |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
190 |
#endif |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
191 |
#endif |
0 | 192 |
} |
193 |
||
11
dc7bcc0fa5e1
New module loading scheme
Myhailo Danylenko <isbear@ukrpost.net>
parents:
5
diff
changeset
|
194 |
static void env_unload (void) |
0 | 195 |
{ |
196 |
// command |
|
16
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
197 |
#ifdef HAVE_CMD_ID |
3 | 198 |
cmd_del ("cd"); |
0 | 199 |
cmd_del ("env"); |
16
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
200 |
#else |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
201 |
if (env_env_cmid) |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
202 |
cmd_del (env_env_cmid); |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
203 |
if (env_cd_cmid) |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
204 |
cmd_del (env_cd_cmid); |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
205 |
#ifdef HAVE_CMD_SAFE |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
206 |
if (env_env_set_safe) |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
207 |
cmd_set_safe ("env", FALSE); |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
208 |
if (env_cd_set_safe) |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
209 |
cmd_set_safe ("cd", FALSE); |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
210 |
#endif |
543bd8927354
Use new commands interface
Myhailo Danylenko <isbear@ukrpost.net>
parents:
15
diff
changeset
|
211 |
#endif |
0 | 212 |
} |
213 |
||
3 | 214 |
/* vim: se ts=4 sw=4: */ |