[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Re: Cobalt::Meta::vsite patch
- Subject: [cobalt-users] Re: Cobalt::Meta::vsite patch
- From: Kevin Bonner <keb@xxxxxx>
- Date: Sat Jun 7 17:19:01 2003
- Organization: CTI Networks
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Not sure how many people actually tried this, but I've seen no problems with
this in the past 2 months. Haven't seen too much recently about people
having all of their siteManage stuff deleted, but I'm sure the bug is still
lurking out there waiting for the chance to strike again.
Has anybody actually tested this patch more in-depth to determine if the
problem is correctly resolved?
Kevin Bonner
On Tuesday 25 March 2003 23:11, Kevin Bonner wrote:
> The problem with siteManage directories disappearing has been around for
> quite a while. I've had to deal with this once, and that was more than
> enough for me. Below is a patch which tries to fix the problem. For those
> that care...either section of the patch should work, but I wanted to be
> more certain that the problem would be caught.
>
> This was applied on several RaQ4's and so far they haven't had any issues.
> I don't have access to other Cobalt products (XTR, 550, Qube 3, etc), so
> I'm not sure if this will work for them.
>
> Comments/suggestions/questions are welcome. As always, use at your own
> risk.
>
> Thanks & enjoy,
> Kevin Bonner
>
> <PATCH>
> Run the following:
> cd /usr/lib/perl5/site_perl/5.005/Cobalt/Meta (or the directory for
> Cobalt::Meta)
> cat /path/to/this.patch | patch
> --- vsite.pm.orig Tue Mar 18 19:13:24 2003
> +++ vsite.pm Tue Mar 18 20:14:05 2003
> @@ -774,6 +774,8 @@
>
> if ($self->{name} eq $MainGroup) {
> return (0, ['The primary site cannot be deleted.']);
> + } elsif ($self->{name} eq '') {
> + return (0, ['Empty site name.']);
> }
>
> # check for existing lock
> @@ -888,7 +890,7 @@
> }
>
> # delete site management web pages
> - qx[ /bin/rm -fr $AdminPages_dir/siteManage/$self->{name} ];
> + qx[ cd $AdminPages_dir/siteManage; /bin/rm -fr $self->{name} ];
>
> # delete system group
> $ret = Cobalt::Group::group_del($self->{name});
> </PATCH>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+4oCs/9i/ml3OBYMRAtF0AJ9YCZof7TR/KdTahLQNiqBW5iJbWQCfZOrh
8UOGw1YMAt+6u/QWCWl/cTM=
=Lqo4
-----END PGP SIGNATURE-----