[PATCH] autobuild: Stop waf uninstall from removing test_tmpdir
Andreas Schneider
asn at samba.org
Mon Mar 20 09:19:49 UTC 2017
On Monday, 20 March 2017 09:53:08 CET Stefan Metzmacher via samba-technical
wrote:
> Hi Martin,
>
> >> waf uninstall (via BuildContext.install() in Build.py) removes empty
> >> directories all the way up the directory tree. This means that it
> >> removes test_tmpdir and any empty directories above it.
>
> How did you find that?
One possibility is to use socket_wrapper and wrap rmdir(), then you can can do
something like:
int rmdir(const char *path)
{
if (strcmp(path, "/tmp") == 0) {
abort();
}
...
}
Or do something like:
https://blog.cryptomilk.org/2015/03/26/hunting-down-a-fd-closing-bug-in-samba/
Andreas
--
Andreas Schneider GPG-ID: CC014E3D
Samba Team asn at samba.org
www.samba.org
More information about the samba-technical
mailing list