getcap.c (44921) | getcap.c (52856) |
---|---|
1/*- 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Casey Leedom of Lawrence Livermore National Laboratory. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. | 1/*- 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Casey Leedom of Lawrence Livermore National Laboratory. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 18 unchanged lines hidden (view full) --- 27 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. |
35 * 36 * $FreeBSD: head/lib/libc/gen/getcap.c 52856 1999-11-04 04:16:28Z ache $ |
|
35 */ 36 37#if defined(LIBC_SCCS) && !defined(lint) 38static char sccsid[] = "@(#)getcap.c 8.3 (Berkeley) 3/25/94"; 39#endif /* LIBC_SCCS and not lint */ 40 41#include <sys/types.h> 42 --- 634 unchanged lines hidden (view full) --- 677 continue; 678 } 679 } else 680 line[len - 1] = '\0'; 681 if (len == 1) { 682 slash = 0; 683 continue; 684 } | 37 */ 38 39#if defined(LIBC_SCCS) && !defined(lint) 40static char sccsid[] = "@(#)getcap.c 8.3 (Berkeley) 3/25/94"; 41#endif /* LIBC_SCCS and not lint */ 42 43#include <sys/types.h> 44 --- 634 unchanged lines hidden (view full) --- 679 continue; 680 } 681 } else 682 line[len - 1] = '\0'; 683 if (len == 1) { 684 slash = 0; 685 continue; 686 } |
685 if (isspace(*line) || | 687 if (isspace((unsigned char)*line) || |
686 *line == ':' || *line == '#' || slash) { 687 if (line[len - 2] == '\\') 688 slash = 1; 689 else 690 slash = 0; 691 continue; 692 } 693 if (line[len - 2] == '\\') --- 351 unchanged lines hidden --- | 688 *line == ':' || *line == '#' || slash) { 689 if (line[len - 2] == '\\') 690 slash = 1; 691 else 692 slash = 0; 693 continue; 694 } 695 if (line[len - 2] == '\\') --- 351 unchanged lines hidden --- |