Package: findutils
Version: 4.4.0-2
Severity: wishlist
File: /usr/bin/find

the -mount option of find doesn't reliably tetect -bind mounts.

# cd /tmp
# mkdir target
# mkdir -p test/point
# mount --bind target test/point
# touch target/testfile
# find test -mount

produces output

test
test/point
test/point/testfile

I realise that this behavior is not out of line with that described in
the man page but feel that having find stop when it hits the
mount-point would be a useful option too.

detecting the mount point traversal seems tricky 
after confirming same-file-system comparing the inode for .. and 
it's expected value won't work where the mount and its mount point
are in the same directory 

Maybe asking the kernel is the only way, but even that could prove
challenging...

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages findutils depends on:
ii  libc6                         2.7-13     GNU C Library: Shared libraries

findutils recommends no packages.

Versions of packages findutils suggests:
ii  slocate                       3.1-1      Secure replacement of findutil's l

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to