[PATCH] Introduce smbspool_krb5_wrapper bug #11690

Andreas Schneider asn at samba.org
Mon Jan 25 06:55:19 UTC 2016


On Saturday 23 January 2016 19:48:10 Ralph Boehme wrote:
> On Fri, Jan 22, 2016 at 11:11:35PM +0100, Andreas Schneider wrote:
> > On Friday, January 22, 2016 10:26:42 PM Ralph Boehme wrote:
> > > On Fri, Jan 22, 2016 at 10:18:30PM +0100, Andreas Schneider wrote:
> > > > On Friday, January 22, 2016 05:03:07 PM Ralph Boehme wrote:
> > > > > Hi!
> > > > 
> > > > Hi Ralph,
> > > > 
> > > > > Nice work!
> > > > 
> > > > thanks.
> > > > 
> > > > > I may be completely off, but wouldn't it make sense to
> > > > > 
> > > > > On Fri, Jan 22, 2016 at 04:38:30PM +0100, Andreas Schneider wrote:
> > > > > > +	return execv("/usr/bin/smbspool", argv);
> > > > > 
> > > > > preserve PATH and use execvp("smbspool", argv) instead in order to
> > > > > avoid having the patch hardcoded?
> > > > 
> > > > Yes, good idea. Or we could pass the install prefix to it. Do you want
> > > > to
> > > > implement it or should I do it on Monday? :-)
> > > 
> > > it's your patchset, I'm just nitpicking. :)))
> > 
> > How about this?
> > 
> > From 8416364c265153f6197cbceb72bb4eb338618096 Mon Sep 17 00:00:00 2001
> > From: Andreas Schneider <asn at samba.org>
> > Date: Fri, 22 Jan 2016 23:04:50 +0100
> > Subject: [PATCH 1/2] waf: Add BINDIR to config.h
> 
> hm, I thinkg get_dyn_BINDIR() should do the trick.

Attached.

> I'm not sure this is actually different from hardcoding /usr/bin.
> 
> We have a few places where we use execvp().

This uses the search patch to find the executable if it doesn't start with a 
/, but we want the path hardcoded.

Cheers,

	-- andreas

-- 
Andreas Schneider                   GPG-ID: CC014E3D
Samba Team                             asn at samba.org
www.samba.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: master-smbspool_krb5_wrapper-v3.patch
Type: text/x-patch
Size: 7924 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160125/6aaff970/master-smbspool_krb5_wrapper-v3.bin>


More information about the samba-technical mailing list