Received: from eggs.gnu.org ([2001:4830:134:3::10]:51776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhvcQ-0005AA-0d for qemu-devel@nongnu.org; Sat, 25 Oct 2014 03:18:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhvcK-0006RV-OR for qemu-devel@nongnu.org; Sat, 25 Oct 2014 03:18:33 -0400 Message-ID: <544B4EB9.9030600@web.de> Date: Sat, 25 Oct 2014 09:18:17 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <1414183045-14741-1-git-send-email-mjt@msgid.tls.msk.ru> In-Reply-To: <1414183045-14741-1-git-send-email-mjt@msgid.tls.msk.ru> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="GV8ueoQvis71bi2iteSPcmX3Khr4JStjO" Subject: Re: [Qemu-devel] [PATCH] net/slirp: specify logbase for smbd List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Tokarev Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --GV8ueoQvis71bi2iteSPcmX3Khr4JStjO Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable On 2014-10-24 22:37, Michael Tokarev wrote: > It looks like smbd always logs to /var/log/samba/log.$progname > even if config file specifies different logfile -- when it needs > to log something before completing reading the config file. But > if it can't open it for writing, it fails and exits. Tell smbd > to use our temp dir as logbase (-l option) to avoid that. >=20 > The same option is used by samba3 and samba4, so there should > be no incompatible changes. >=20 > Signed-off-by: Michael Tokarev > --- > net/slirp.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/net/slirp.c b/net/slirp.c > index c171119..920af30 100644 > --- a/net/slirp.c > +++ b/net/slirp.c > @@ -549,8 +549,8 @@ static int slirp_smb(SlirpState* s, const char *exp= orted_dir, > ); > fclose(f); > =20 > - snprintf(smb_cmdline, sizeof(smb_cmdline), "%s -s %s", > - CONFIG_SMBD_COMMAND, smb_conf); > + snprintf(smb_cmdline, sizeof(smb_cmdline), "%s -l %s -s %s", > + CONFIG_SMBD_COMMAND, s->smb_dir, smb_conf); > =20 > if (slirp_add_exec(s->slirp, 0, smb_cmdline, &vserver_addr, 139) <= 0 || > slirp_add_exec(s->slirp, 0, smb_cmdline, &vserver_addr, 445) <= 0) { >=20 Cool, works for me as well! Reviewed-and-tested-by: Jan Kiszka Jan --GV8ueoQvis71bi2iteSPcmX3Khr4JStjO Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlRLTsEACgkQitSsb3rl5xS41gCfe5RgJbgKM69ZWfC0jiGEMFXI H0cAoLemB8lQ0b5Ah6mfhO1ybwwndY4n =uZB9 -----END PGP SIGNATURE----- --GV8ueoQvis71bi2iteSPcmX3Khr4JStjO--