verify.c (99800) | verify.c (99802) |
---|---|
1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)verify.c 8.1 (Berkeley) 6/6/93"; 37#endif 38static const char rcsid[] = | 1/*- 2 * Copyright (c) 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 */ 33 34#ifndef lint 35#if 0 36static char sccsid[] = "@(#)verify.c 8.1 (Berkeley) 6/6/93"; 37#endif 38static const char rcsid[] = |
39 "$FreeBSD: head/usr.sbin/mtree/verify.c 99800 2002-07-11 18:31:16Z alfred $"; | 39 "$FreeBSD: head/usr.sbin/mtree/verify.c 99802 2002-07-11 18:42:53Z alfred $"; |
40#endif /* not lint */ 41 42#include <sys/param.h> 43#include <sys/stat.h> 44#include <dirent.h> 45#include <err.h> 46#include <errno.h> 47#include <fts.h> --- 29 unchanged lines hidden (view full) --- 77static int 78vwalk() 79{ 80 register FTS *t; 81 register FTSENT *p; 82 register NODE *ep, *level; 83 int specdepth, rval; 84 char *argv[2]; | 40#endif /* not lint */ 41 42#include <sys/param.h> 43#include <sys/stat.h> 44#include <dirent.h> 45#include <err.h> 46#include <errno.h> 47#include <fts.h> --- 29 unchanged lines hidden (view full) --- 77static int 78vwalk() 79{ 80 register FTS *t; 81 register FTSENT *p; 82 register NODE *ep, *level; 83 int specdepth, rval; 84 char *argv[2]; |
85 char dot[] = "."; |
|
85 | 86 |
86 argv[0] = "."; | 87 argv[0] = dot; |
87 argv[1] = NULL; 88 if ((t = fts_open(argv, ftsoptions, NULL)) == NULL) 89 err(1, "line %d: fts_open", lineno); 90 level = root; 91 specdepth = rval = 0; 92 while ((p = fts_read(t))) { 93 if (check_excludes(p->fts_name, p->fts_path)) { 94 fts_set(t, p, FTS_SKIP); --- 150 unchanged lines hidden --- | 88 argv[1] = NULL; 89 if ((t = fts_open(argv, ftsoptions, NULL)) == NULL) 90 err(1, "line %d: fts_open", lineno); 91 level = root; 92 specdepth = rval = 0; 93 while ((p = fts_read(t))) { 94 if (check_excludes(p->fts_name, p->fts_path)) { 95 fts_set(t, p, FTS_SKIP); --- 150 unchanged lines hidden --- |