]> git.proxmox.com Git - mirror_qemu.git/commit - net/slirp.c
net/slirp: specify logbase for smbd
authorMichael Tokarev <mjt@tls.msk.ru>
Fri, 24 Oct 2014 20:29:50 +0000 (00:29 +0400)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 2 Nov 2014 07:04:34 +0000 (10:04 +0300)
commit44d8d2b2ddbaa3ee4125ec6cb2e8691e6348b01e
tree78c3a663245f1a293d47979e38d93999ceb4f842
parent2fd7ae36c5403b14e9c676627a1a0dd2b76b9e1b
net/slirp: specify logbase for smbd

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.

The same option is used by samba3 and samba4, so there should
be no incompatible changes.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com>
Tested-by: Jan Kiszka <jan.kiszka@siemens.com>
net/slirp.c