Deleted Added
full compact
rm.c (99744) rm.c (99858)
1/*-
2 * Copyright (c) 1990, 1993, 1994
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

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

38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)rm.c 8.5 (Berkeley) 4/18/94";
43#endif
44#endif /* not lint */
45#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1990, 1993, 1994
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

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

38#endif /* not lint */
39
40#ifndef lint
41#if 0
42static char sccsid[] = "@(#)rm.c 8.5 (Berkeley) 4/18/94";
43#endif
44#endif /* not lint */
45#include <sys/cdefs.h>
46__FBSDID("$FreeBSD: head/bin/rm/rm.c 99744 2002-07-10 20:44:55Z dillon $");
46__FBSDID("$FreeBSD: head/bin/rm/rm.c 99858 2002-07-12 07:20:20Z tjr $");
47
48#include <sys/stat.h>
49#include <sys/param.h>
50#include <sys/mount.h>
51
52#include <err.h>
53#include <errno.h>
54#include <fcntl.h>

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

93 p = argv[0];
94 else
95 ++p;
96 if (strcmp(p, "unlink") == 0) {
97 while (getopt(argc, argv, "") != -1)
98 usage();
99 argc -= optind;
100 argv += optind;
47
48#include <sys/stat.h>
49#include <sys/param.h>
50#include <sys/mount.h>
51
52#include <err.h>
53#include <errno.h>
54#include <fcntl.h>

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

93 p = argv[0];
94 else
95 ++p;
96 if (strcmp(p, "unlink") == 0) {
97 while (getopt(argc, argv, "") != -1)
98 usage();
99 argc -= optind;
100 argv += optind;
101 if (argc == 0)
101 if (argc != 1)
102 usage();
103 rm_file(&argv[0]);
104 exit(eval);
105 }
106
107 Pflag = rflag = 0;
108 while ((ch = getopt(argc, argv, "dfiPRrvW")) != -1)
109 switch(ch) {

--- 380 unchanged lines hidden ---
102 usage();
103 rm_file(&argv[0]);
104 exit(eval);
105 }
106
107 Pflag = rflag = 0;
108 while ((ch = getopt(argc, argv, "dfiPRrvW")) != -1)
109 switch(ch) {

--- 380 unchanged lines hidden ---