Subject: changed files: 'src/usr.bin/find main.c'
To: None <source-changes>
From: J.T. Conklin <jtc>
List: source-changes
Date: 12/29/1993 14:00:19
Update of /b/source/CVS/src/usr.bin/find
In directory sun-lamp.cs.berkeley.edu:/c/users/jtc/find
Modified Files:
main.c
Log Message:
Changed to conform to POSIX.2, 4.24.4: the first argument that starts with
a -, or is a ! or a (, and all subsequent arguments shall be interpreted
as an expression ...
The behavior before this change can cause a non-option (eg -owner instead
of -user) to be interpreted as a file name. Depending on the expression
used, this could cause serious damage:
find . -owner jtc -exec rm \{\} \;
Will delete every file.
------------------------------------------------------------------------------