[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help! File permissions keep changing...



Wow, this is so completely OT I like it...

On Wednesday, 2004-02-18 at 13:58:59 +0100, Ivan Brezina wrote:

> hmm, xargs does not use quotes when executing commands. This causes 
> problems with dirs with spaces in name.
> If user has directory named "dummy root", he can easily get accsess to 
> /root directory.

That's why GNU find and xargs have the options -print0 and -0,
respectively. Names in Unixish filesystems can't have NULs in them.

Stoopid(tm) example:
find "foo bar" -print0 | xargs -0 ls -ld

There, I made the thread even more offtopic! :-O

HTH,
Lupe Christoph
-- 
| lupe@lupe-christoph.de       |           http://www.lupe-christoph.de/ |
| "Violence is the resort of the violent" Lu Tze                         |
| "Thief of Time", Terry Pratchett                                       |



Reply to: