Deleted Added
full compact
42c42
< __FBSDID("$FreeBSD: head/bin/rm/rm.c 136112 2004-10-04 11:14:12Z des $");
---
> __FBSDID("$FreeBSD: head/bin/rm/rm.c 136113 2004-10-04 11:26:01Z des $");
64a65
> void checkslash(char **);
142a144
> checkslash(argv);
467a470,490
> #define ISSLASH(a) ((a)[0] == '/' && (a)[1] == '\0')
> void
> checkslash(char **argv)
> {
> char **t, **u;
> int complained;
>
> complained = 0;
> for (t = argv; *t;) {
> if (ISSLASH(*t)) {
> if (!complained++)
> warnx("\"/\" may not be removed");
> eval = 1;
> for (u = t; u[0] != NULL; ++u)
> u[0] = u[1];
> } else {
> ++t;
> }
> }
> }
>