diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-05-31 13:18:37 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-06-21 15:54:51 +1000 |
commit | b373d0e777df8770c24cfcc5cc80bf4808faa815 (patch) | |
tree | aeb149d1bc9290a7ddfe0b9aba4cb1fe5314a59b /source3/lib/dummyroot.c | |
parent | e00b1fa2b032012e741d94f3fe0057d6ea53bf4c (diff) | |
download | samba-b373d0e777df8770c24cfcc5cc80bf4808faa815.tar.gz samba-b373d0e777df8770c24cfcc5cc80bf4808faa815.tar.bz2 samba-b373d0e777df8770c24cfcc5cc80bf4808faa815.zip |
s3-build: Provide a run-time shim to work around duplicate symbols
The become_root() and similar 'smbd' functions that are used widely in
Samba libraries had 'dummy' copies in dummysmbd.c and dummyroot.c.
These have been replaced by a runtime plugin mechanim, which ensures
that standlone binaries still do nothing, while in smbd the correct
function is used.
This avoids having these as duplicate symbols in the smbd binary,
which can cause unpredictable behaviour.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/lib/dummyroot.c')
-rw-r--r-- | source3/lib/dummyroot.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/source3/lib/dummyroot.c b/source3/lib/dummyroot.c deleted file mode 100644 index 64ea75814a..0000000000 --- a/source3/lib/dummyroot.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - Unix SMB/CIFS implementation. - RPC pipe client - - Copyright (C) Tim Potter 2003 - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ - -/* Stupid dummy functions required due to the horrible dependency mess - in Samba. */ - -#include "includes.h" - -void become_root(void) -{ - return; -} - -void unbecome_root(void) -{ - return; -} |