int i;
ustring u;
char* argv1[4];
-// char* argv2[4];
limit = now () - span;
-#if 0
- std::cerr << "limit:" << strYMD (limit) << "\n";
-#endif /* DEBUG */
openDB (db, lock, mlenv);
db.initeach ();
if (key.size > 1) {
t = strtol ((char*)val.data, NULL, 10);
if (t > 0 && t < limit) {
-#if 0
- std::cerr << strYMD (t) << "\n";
-#endif /* DEBUG */
xs.push_back (new ustring ((char*)key.data, key.size));
pathRec (&val, subdir, savedir);
if (subdir)
argv1[0] = (char*)cmd_rm;
argv1[1] = (char*)"-fr";
argv1[3] = NULL;
-// argv2[0] = (char*)cmd_rmdir;
-// argv2[2] = NULL;
for (i = 0; i < path.size (); i ++) {
assert (path[i].size () > 0);
u = mlenv->env->path_to_store () + path[i];
argv1[2] = noconst_char (u.c_str ());
exec_cmd (argv1);
- pdir (u);
-// argv2[1] = noconst_char (u.c_str ());
-// exec_cmd (argv2);
+ pdir (u); // レベル1
+ rmdir (u.c_str ());
+ pdir (u); // レベル2
rmdir (u.c_str ());
-#ifdef DEBUG
-// std::cerr << argv1[0] << " " << argv1[1] << " " << argv1[2] << "\n";
-// std::cerr << "rmdir " << u << "\n";
-#endif /* DEBUG */
}
}
===wiki-guestuser-function===
(wiki-guestuser-function FNAME...) -> NIL
+Wikiコマンドの一般ユーザへの実行許可。
+
*/
//#AFUNC wiki-guestuser-function ml_wiki_guestuser_function
MNode* ml_wiki_guestuser_function (MNode* cell, MlEnv* mlenv) {