Deleted Added
full compact
sel_subs.c (36049) sel_subs.c (46684)
1/*-
2 * Copyright (c) 1992 Keith Muller.
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Keith Muller of the University of California, San Diego.
8 *

--- 26 unchanged lines hidden (view full) ---

35 * SUCH DAMAGE.
36 */
37
38#ifndef lint
39#if 0
40static char sccsid[] = "@(#)sel_subs.c 8.1 (Berkeley) 5/31/93";
41#endif
42static const char rcsid[] =
1/*-
2 * Copyright (c) 1992 Keith Muller.
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Keith Muller of the University of California, San Diego.
8 *

--- 26 unchanged lines hidden (view full) ---

35 * SUCH DAMAGE.
36 */
37
38#ifndef lint
39#if 0
40static char sccsid[] = "@(#)sel_subs.c 8.1 (Berkeley) 5/31/93";
41#endif
42static const char rcsid[] =
43 "$Id$";
43 "$Id: sel_subs.c,v 1.9 1998/05/15 06:27:46 charnier Exp $";
44#endif /* not lint */
45
46#include <sys/types.h>
47#include <sys/time.h>
48#include <sys/stat.h>
49#include <pwd.h>
50#include <grp.h>
51#include <stdio.h>

--- 16 unchanged lines hidden (view full) ---

68static GRPT **grptb = NULL; /* group selection table */
69
70/*
71 * Routines for selection of archive members
72 */
73
74/*
75 * sel_chk()
44#endif /* not lint */
45
46#include <sys/types.h>
47#include <sys/time.h>
48#include <sys/stat.h>
49#include <pwd.h>
50#include <grp.h>
51#include <stdio.h>

--- 16 unchanged lines hidden (view full) ---

68static GRPT **grptb = NULL; /* group selection table */
69
70/*
71 * Routines for selection of archive members
72 */
73
74/*
75 * sel_chk()
76 * check if this file matches a specfied uid, gid or time range
76 * check if this file matches a specified uid, gid or time range
77 * Return:
78 * 0 if this archive member should be processed, 1 if it should be skipped
79 */
80
81#if __STDC__
82int
83sel_chk(register ARCHD *arcn)
84#else

--- 9 unchanged lines hidden (view full) ---

94 return(0);
95}
96
97/*
98 * User/group selection routines
99 *
100 * Routines to handle user selection of files based on the file uid/gid. To
101 * add an entry, the user supplies either then name or the uid/gid starting with
77 * Return:
78 * 0 if this archive member should be processed, 1 if it should be skipped
79 */
80
81#if __STDC__
82int
83sel_chk(register ARCHD *arcn)
84#else

--- 9 unchanged lines hidden (view full) ---

94 return(0);
95}
96
97/*
98 * User/group selection routines
99 *
100 * Routines to handle user selection of files based on the file uid/gid. To
101 * add an entry, the user supplies either then name or the uid/gid starting with
102 * a # on the command line. A \# will eascape the #.
102 * a # on the command line. A \# will escape the #.
103 */
104
105/*
106 * usr_add()
107 * add a user match to the user match hash table
108 * Return:
109 * 0 if added ok, -1 otherwise;
110 */

--- 549 unchanged lines hidden ---
103 */
104
105/*
106 * usr_add()
107 * add a user match to the user match hash table
108 * Return:
109 * 0 if added ok, -1 otherwise;
110 */

--- 549 unchanged lines hidden ---