Date: Mon, 27 Mar 1995 22:23:27 -0800 (PST) From: Poul-Henning Kamp <phk@ref.tfs.com> To: mark@grondar.za (Mark Murray) Cc: ctm-announce@freebsd.org Subject: Re: To all the ctm'mers... Message-ID: <199503280623.WAA02503@ref.tfs.com> In-Reply-To: <199503280609.IAA22705@grunt.grondar.za> from "Mark Murray" at Mar 28, 95 08:09:37 am
next in thread | previous in thread | raw e-mail | index | archive | help
> > > Sure. But _where_? Where does sendmail get a path from? > > > > I use this: > > ctm-cvs-cur: "| PATH=$PATH:/usr/sbin /usr/sbin/ctm_rmail -l /archive/CTM_m > ail > > /log -p /archive/CTM_mail -d /archive/CTM -b /home/ncvs" > > > > and it works, but is gross... > > > > I belive ctm_rmail should use an absolute path to the ctm program. > > How about assuming that ctm is in the same directory as ctm_rmail? > We know where it is, /usr/sbin ! Well, really, I have thought about this, and I belive the right thing to do, is the make a /etc/ctmcap file. What do you think of this strawman: default:\ :lf=/var/log/ctm.log:\ (log file) :mn=phk:mv=2:\ (mail to and level of verbosity) :ms=CTM result:\ (mail subject) :pc=/usr/sbin/ctm:\ (path to ctm) src-cur|Current FreeBSD Source Code:\ :sd=/var/spool/ctm:\ (spool dir for mail parts) :ad=/archive/ctm/src-cur:\ (archive dir for deltas) :ed=/usr/src:\ (extraction dir) :dm=0750:du=bin:dg=bin:\ (dir mode user group) :fm=0444:fu=bin:fg=bin:\ (file mode user group) :co=-v -P:\ (ctm options) :tc=default: (use the defaults) Then we make ctm_rmail setuid safe and install it setuid and you can just use this for you alias: ctm: "|/usr/sbin/ctm_rmail" even if you receive several streams of ctm-deltas. Now, who does this ? -- Poul-Henning Kamp <phk@login.dknet.dk> -- TRW Financial Systems, Inc. 'All relevant people are pertinent' && 'All rude people are impertinent' => 'no rude people are relevant'
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503280623.WAA02503>