Skip to content

Commit

Permalink
The previous commit added code to rm(1) to warn about and remove any
Browse files Browse the repository at this point in the history
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 d6b7bd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/rm/rm.c
Expand Up @@ -141,7 +141,8 @@ main(int argc, char *argv[])
}

checkdot(argv);
checkslash(argv);
if (getenv("POSIXLY_CORRECT") == NULL)
checkslash(argv);
uid = geteuid();

if (*argv) {
Expand Down

0 comments on commit d6b7bd9

Please sign in to comment.