homedir.c (38495) | homedir.c (38500) |
---|---|
1/* 2 * Copyright (c) 1997-1998 Erez Zadok 3 * Copyright (c) 1989 Jan-Simon Pendry 4 * Copyright (c) 1989 Imperial College of Science, Technology & Medicine 5 * Copyright (c) 1989 The Regents of the University of California. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by --- 24 unchanged lines hidden (view full) --- 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * %W% (Berkeley) %G% 40 * | 1/* 2 * Copyright (c) 1997-1998 Erez Zadok 3 * Copyright (c) 1989 Jan-Simon Pendry 4 * Copyright (c) 1989 Imperial College of Science, Technology & Medicine 5 * Copyright (c) 1989 The Regents of the University of California. 6 * All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by --- 24 unchanged lines hidden (view full) --- 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * 39 * %W% (Berkeley) %G% 40 * |
41 * $Id: homedir.c,v 1.16 1993/09/13 15:11:00 ezk Exp $ | 41 * $Id: homedir.c,v 1.1.1.1 1998/08/23 22:07:20 obrien Exp $ |
42 * 43 * HLFSD was written at Columbia University Computer Science Department, by 44 * Erez Zadok <ezk@cs.columbia.edu> and Alexander Dupuy <dupuy@cs.columbia.edu> 45 * It is being distributed under the same terms and conditions as amd does. 46 */ 47 48#ifdef HAVE_CONFIG_H 49# include <config.h> --- 11 unchanged lines hidden (view full) --- 61static int hlfsd_diskspace(char *); 62static int hlfsd_stat(char *, struct stat *); 63static int passwd_line = 0; 64static int plt_reset(void); 65static struct passwd passwd_ent; 66static uid2home_t *lastchild; 67static uid2home_t *pwtab; 68static void delay(uid2home_t *, int); | 42 * 43 * HLFSD was written at Columbia University Computer Science Department, by 44 * Erez Zadok <ezk@cs.columbia.edu> and Alexander Dupuy <dupuy@cs.columbia.edu> 45 * It is being distributed under the same terms and conditions as amd does. 46 */ 47 48#ifdef HAVE_CONFIG_H 49# include <config.h> --- 11 unchanged lines hidden (view full) --- 61static int hlfsd_diskspace(char *); 62static int hlfsd_stat(char *, struct stat *); 63static int passwd_line = 0; 64static int plt_reset(void); 65static struct passwd passwd_ent; 66static uid2home_t *lastchild; 67static uid2home_t *pwtab; 68static void delay(uid2home_t *, int); |
69static void table_add(int, char *, char *); | 69static void table_add(int, const char *, const char *); |
70 71/* GLOBAL FUNCTIONS */ 72char *homeof(char *username); 73int uidof(char *username); 74 75/* GLOBALS VARIABLES */ 76char mboxfile[MAXPATHLEN]; 77username2uid_t *untab; /* user name table */ --- 536 unchanged lines hidden (view full) --- 614 615 616/* 617 * u: uid number 618 * h: home directory 619 * n: user ID name 620 */ 621static void | 70 71/* GLOBAL FUNCTIONS */ 72char *homeof(char *username); 73int uidof(char *username); 74 75/* GLOBALS VARIABLES */ 76char mboxfile[MAXPATHLEN]; 77username2uid_t *untab; /* user name table */ --- 536 unchanged lines hidden (view full) --- 614 615 616/* 617 * u: uid number 618 * h: home directory 619 * n: user ID name 620 */ 621static void |
622table_add(int u, char *h, char *n) | 622table_add(int u, const char *h, const char *n) |
623{ 624 int i; 625 626 clock_valid = 0; /* invalidate logging clock */ 627 628 if (max_pwtab_num <= 0) { /* was never initialized */ 629 max_pwtab_num = 1; 630 pwtab = (uid2home_t *) xmalloc(max_pwtab_num * --- 169 unchanged lines hidden --- | 623{ 624 int i; 625 626 clock_valid = 0; /* invalidate logging clock */ 627 628 if (max_pwtab_num <= 0) { /* was never initialized */ 629 max_pwtab_num = 1; 630 pwtab = (uid2home_t *) xmalloc(max_pwtab_num * --- 169 unchanged lines hidden --- |