Permalink
Browse files

The previous commit added code to rm(1) to warn about and remove any

occurrences of "/" in the argument list.  This corresponds to Enhancement
Request Number 5 in the Austin Group TC2 Aardvark's XCU Defects Report
(<URL:http://www.opengroup.org/austin/aardvark/finaltext/xcubug.txt>).
Further discussion is available in the Austin Group mailing list archives
(<URL:http://www.opengroup.org/austin/mailarchives/>, "Defect in XCU rm")
and for Austin Group members, in the Austin Group Interpretations archive
(<URL:http://www.opengroup.org/austin/interps/>, AI-019)

This commit makes that check conditional on !POSIXLY_CORRECT, since it
is not strictly correct according to the current version of the standard
(but is expected to be correct according to the next version, and has
already been adopted by Solaris).
  • Loading branch information...
dag-erling committed Oct 4, 2004
1 parent 7b077f5 commit d6b7bd90c2776d9ccd8bb7f33a899bd213aebf85
Showing with 2 additions and 1 deletion.
  1. +2 −1 bin/rm/rm.c
View
@@ -141,7 +141,8 @@ main(int argc, char *argv[])
}
checkdot(argv);
checkslash(argv);
if (getenv("POSIXLY_CORRECT") == NULL)
checkslash(argv);
uid = geteuid();
if (*argv) {

0 comments on commit d6b7bd9

Please sign in to comment.