[215] in bug-owl

home help back first fref pref prev next nref lref last post

Re: zwrite -i something -m something fails

daemon@ATHENA.MIT.EDU (Arun A Tharuvai)
Sat Jun 28 23:47:32 2003

Date: Sat, 28 Jun 2003 23:47:31 -0400
From: Arun A Tharuvai <aatharuv@MIT.EDU>
To: bug-owl@MIT.EDU
Cc: aatharuv@MIT.EDU
Message-ID: <20030629034731.GA25776@multics.mit.edu>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="7JfCtLOvnd9MIVvH"
Content-Disposition: inline
In-Reply-To: <20030629002035.GA8253@multics.mit.edu>


--7JfCtLOvnd9MIVvH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Here's a patch tested against current CVS on solaris. It also fixes
the problem where configure script tests for des425_req_act_vno in
-ldes425, when the actual function name is req_act_vno

Arun

On Sat, Jun 28, 2003 at 08:20:35PM -0400, Arun A Tharuvai wrote:
> The following fail as of 2.0.5 (they worked in some of the earlier
> 2.0.x betas, IIRC), with the error:  "Error in zwrite arugments"
> 
> zwrite -i something -m something
> zwrite -c something -m something
> 
> Using other options to zwrite along with -m something work just fine
> though.
> 
> Arun

--7JfCtLOvnd9MIVvH
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="owl.diff"

Index: configure.in
===================================================================
RCS file: /mit/ktools/src/owl/repository/owl/configure.in,v
retrieving revision 1.16
diff -u -r1.16 configure.in
--- configure.in	27 Jun 2003 15:09:08 -0000	1.16
+++ configure.in	29 Jun 2003 03:36:22 -0000
@@ -34,7 +34,7 @@
 AC_CHECK_LIB(nsl, gethostbyname)
 AC_CHECK_LIB(socket, socket)
 AC_CHECK_LIB(k5crypto, krb5_derive_key)
-AC_CHECK_LIB(des425, des425_req_act_vno)
+AC_CHECK_LIB(des425, req_act_vno)
 AC_CHECK_LIB(des, des_quad_cksum)
 AC_CHECK_LIB(resolv, res_search)
 AC_CHECK_LIB(krb5, krb5_get_credentials)
Index: zwrite.c
===================================================================
RCS file: /mit/ktools/src/owl/repository/owl/zwrite.c,v
retrieving revision 1.13
diff -u -r1.13 zwrite.c
--- zwrite.c	25 Jun 2003 13:11:58 -0000	1.13
+++ zwrite.c	29 Jun 2003 03:23:23 -0000
@@ -83,8 +83,8 @@
 	badargs=1;
 	break;
       }
-      /* we must already have users */
-      if (owl_list_get_size(&(z->recips))<1) {
+      /* we must already have users or a class or an instance*/
+      if (owl_list_get_size(&(z->recips))<1 && (!z->class) && (!z->inst)) {
 	badargs=1;
 	break;
       }

--7JfCtLOvnd9MIVvH--

home help back first fref pref prev next nref lref last post