From 274f1f8806f091a38bbf65363d7edf681459b58d Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 22 Jul 2003 00:20:53 +0000 Subject: Replace the eight (!) copies of dummy become/unbecome root with a single one. (This used to be commit 8b818ce381595cdcb36631a2440d6aa0038805f1) --- source3/lib/dummyroot.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 source3/lib/dummyroot.c (limited to 'source3/lib/dummyroot.c') diff --git a/source3/lib/dummyroot.c b/source3/lib/dummyroot.c new file mode 100644 index 0000000000..c8465cb791 --- /dev/null +++ b/source3/lib/dummyroot.c @@ -0,0 +1,33 @@ +/* + 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 2 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, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +/* Stupid dummy functions required due to the horrible dependency mess + in Samba. */ + +void become_root(void) +{ + return; +} + +void unbecome_root(void) +{ + return; +} -- cgit From 1c4bbe06549d86614318718a45b9bc48e3bfc81f Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Mon, 2 May 2005 17:49:43 +0000 Subject: r6586: get rid of a few more compiler warnings (This used to be commit 173375f8d88bf8e8db8d60e5d5f0e5dcc28767d9) --- source3/lib/dummyroot.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/lib/dummyroot.c') diff --git a/source3/lib/dummyroot.c b/source3/lib/dummyroot.c index c8465cb791..75263ed232 100644 --- a/source3/lib/dummyroot.c +++ b/source3/lib/dummyroot.c @@ -22,6 +22,9 @@ /* Stupid dummy functions required due to the horrible dependency mess in Samba. */ +void become_root(void); +void unbecome_root(void); + void become_root(void) { return; -- cgit From 0a65865bfed4bf54262052c3842a3fec90671e94 Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Mon, 2 May 2005 21:30:57 +0000 Subject: r6588: just include includes.h to get prototypes here. (This used to be commit 5565606560ef017f289c2dc941bf4135fc1a9faa) --- source3/lib/dummyroot.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/lib/dummyroot.c') diff --git a/source3/lib/dummyroot.c b/source3/lib/dummyroot.c index 75263ed232..bd04bd9ee5 100644 --- a/source3/lib/dummyroot.c +++ b/source3/lib/dummyroot.c @@ -22,8 +22,7 @@ /* Stupid dummy functions required due to the horrible dependency mess in Samba. */ -void become_root(void); -void unbecome_root(void); +#include "includes.h" void become_root(void) { -- cgit From d824b98f80ba186030cbb70b3a1e5daf80469ecd Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 9 Jul 2007 19:25:36 +0000 Subject: r23779: Change from v2 or later to v3 or later. Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3) --- source3/lib/dummyroot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib/dummyroot.c') diff --git a/source3/lib/dummyroot.c b/source3/lib/dummyroot.c index bd04bd9ee5..f60e31b99b 100644 --- a/source3/lib/dummyroot.c +++ b/source3/lib/dummyroot.c @@ -6,7 +6,7 @@ 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 2 of the License, or + 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, -- cgit From 5e54558c6dea67b56bbfaba5698f3a434d3dffb6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 10 Jul 2007 00:52:41 +0000 Subject: r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07) --- source3/lib/dummyroot.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/lib/dummyroot.c') diff --git a/source3/lib/dummyroot.c b/source3/lib/dummyroot.c index f60e31b99b..64ea75814a 100644 --- a/source3/lib/dummyroot.c +++ b/source3/lib/dummyroot.c @@ -15,8 +15,7 @@ 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, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with this program. If not, see . */ /* Stupid dummy functions required due to the horrible dependency mess -- cgit