Philipp Rotmann wrote:
> I 'solved' that problem by filling in every single field
> with useless stuff that I later deleted.
> Now, with your patch applied to midgard-php, I was able to
> create a new user with only a few fields supplied.
>
> Strange.
Strange indeed, but the problem's located. A patch that fixes it
is attached, and the tarball will soon have a fix for it too.
The RPMs have the attached patch installed and have been replaced
on the website -- that's midgard-php-1.2.5-3.i386.rpm for the
separate modules, or the apache-midgard-1.2.5-3.i386.rpm for the
MP users. When the main distribution is updated the RPMs will
follow suit.
The patch that is attached here contains the earlier patch,
and installs against the *clean* 1.2.5 tarball, without my
previous patch installed.
I still don't understand how my previous patch fixed your user
problem. It really shouldn't have.
Bye,
Emile
diff -ur midgard-php-1.2.5.bak/functions/midgard.c
midgard-php-1.2.5/functions/midgard.c
--- midgard-php-1.2.5.bak/functions/midgard.c Wed Nov 10 00:43:41 1999
+++ midgard-php-1.2.5/functions/midgard.c Tue Nov 23 00:01:31 1999
@@ -536,7 +536,7 @@
static int isowner()
{
- return mgd_exists(rcfg->mgd, "grp", "owner IN $D", mgd_groups(rcfg->mgd));
+ return mgd_isadmin(rcfg->mgd) || mgd_exists(rcfg->mgd, "grp", "owner IN $D",
+mgd_groups(rcfg->mgd));
}
#define PERSON_SELECT \
@@ -2317,7 +2317,7 @@
midgard_create(return_value, "host",
"name,port,online,root,style,info,owner,prefix",
- "$q,$d,$d,$d,$d,$d,$d,$s", name->value.str.val,
+ "$q,$d,$d,$d,$d,$d,$d,$q", name->value.str.val,
port->value.lval, online->value.lval == 1,
root->value.lval, style->value.lval,
auth->value.lval == 1, owner->value.lval,
diff -ur midgard-php-1.2.5.bak/mod_php3.c midgard-php-1.2.5/mod_php3.c
--- midgard-php-1.2.5.bak/mod_php3.c Fri Aug 6 18:02:52 1999
+++ midgard-php-1.2.5/mod_php3.c Tue Nov 23 00:00:55 1999
@@ -530,7 +530,7 @@
{
register_cleanup(p, NULL, php3_module_shutdown, php3_module_shutdown_for_exec);
#if MODULE_MAGIC_NUMBER >= 19980527
- ap_add_version_component("PHP/" PHP_VERSION);
+ ap_add_version_component("PHP/" PHP_VERSION "+Midgard/1.2.5");
#endif
}
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]