mtree.c (249293) | mtree.c (273796) |
---|---|
1/* $NetBSD: mtree.c,v 1.48 2013/04/08 17:39:11 christos Exp $ */ | 1/* $NetBSD: mtree.c,v 1.49 2014/04/24 17:22:41 christos Exp $ */ |
2 3/*- 4 * Copyright (c) 1989, 1990, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 28 unchanged lines hidden (view full) --- 38__COPYRIGHT("@(#) Copyright (c) 1989, 1990, 1993\ 39 The Regents of the University of California. All rights reserved."); 40#endif /* not lint */ 41 42#if defined(__RCSID) && !defined(lint) 43#if 0 44static char sccsid[] = "@(#)mtree.c 8.1 (Berkeley) 6/6/93"; 45#else | 2 3/*- 4 * Copyright (c) 1989, 1990, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 28 unchanged lines hidden (view full) --- 38__COPYRIGHT("@(#) Copyright (c) 1989, 1990, 1993\ 39 The Regents of the University of California. All rights reserved."); 40#endif /* not lint */ 41 42#if defined(__RCSID) && !defined(lint) 43#if 0 44static char sccsid[] = "@(#)mtree.c 8.1 (Berkeley) 6/6/93"; 45#else |
46__RCSID("$NetBSD: mtree.c,v 1.48 2013/04/08 17:39:11 christos Exp $"); | 46__RCSID("$NetBSD: mtree.c,v 1.49 2014/04/24 17:22:41 christos Exp $"); |
47#endif 48#endif /* not lint */ 49 50#include <sys/param.h> 51#include <sys/stat.h> 52 53#include <errno.h> 54#include <stdio.h> --- 236 unchanged lines hidden (view full) --- 291 292 if (iflag && mflag) 293 mtree_err("-i and -m flags are mutually exclusive"); 294 295 if (lflag && uflag) 296 mtree_err("-l and -u flags are mutually exclusive"); 297 298 if (cflag) { | 47#endif 48#endif /* not lint */ 49 50#include <sys/param.h> 51#include <sys/stat.h> 52 53#include <errno.h> 54#include <stdio.h> --- 236 unchanged lines hidden (view full) --- 291 292 if (iflag && mflag) 293 mtree_err("-i and -m flags are mutually exclusive"); 294 295 if (lflag && uflag) 296 mtree_err("-l and -u flags are mutually exclusive"); 297 298 if (cflag) { |
299 cwalk(); | 299 cwalk(stdout); |
300 exit(0); 301 } 302 if (Cflag || Dflag) { | 300 exit(0); 301 } 302 if (Cflag || Dflag) { |
303 dump_nodes("", spec(spec1), Dflag); | 303 dump_nodes(stdout, "", spec(spec1), Dflag); |
304 exit(0); 305 } 306 if (spec2 != NULL) 307 status = mtree_specspec(spec1, spec2); 308 else 309 status = verify(spec1); 310 if (Uflag && (status == MISMATCHEXIT)) 311 status = 0; --- 21 unchanged lines hidden --- | 304 exit(0); 305 } 306 if (spec2 != NULL) 307 status = mtree_specspec(spec1, spec2); 308 else 309 status = verify(spec1); 310 if (Uflag && (status == MISMATCHEXIT)) 311 status = 0; --- 21 unchanged lines hidden --- |