[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
find 4.1: incorrect "No such file or directory" using -empty and -depth
From: |
Martin Jost |
Subject: |
find 4.1: incorrect "No such file or directory" using -empty and -depth |
Date: |
Fri, 28 Sep 2001 12:04:37 +0200 |
Hello,
this is GNU find 4.1 on HPUX 10.20 (compiled using HP ANSI cc)
When I use both -depth and -empty (to delete empty dirs) find
incorrectly complains about
"No such file or directory".
This goes away as soon as I drop one of these options.
Example: (done as root (to avoid permission problems) on a local
HFS-Filesystem)
[lasagne_ROOT]:>find --version
GNU find version 4.1
[lasagne_ROOT]:>find /stand -depth -empty
/stand/lost+found
find: /stand/build: No such file or directory
find: /stand: Not a directory
But:
[lasagne_ROOT]:>ll /stand/build/
total 184
drwxr-xr-x 2 root root 1024 Sep 27 12:51 .
dr-xr-xr-x 4 bin bin 1024 Sep 27 12:51 ..
-rw-r--r-- 1 root sys 35525 Apr 27 15:26 conf.SAM.c
-rw-r----- 1 root sys 34572 Apr 27 15:26 conf.SAM.o
-rw-r--r-- 1 root root 35772 Sep 27 12:51 conf.c
-rw-r--r-- 1 root sys 34876 Sep 27 12:51 conf.o
-rw-r--r-- 1 root sys 34876 Sep 26 15:28 conf.o.old
-rwxr--r-- 1 root sys 3072 Apr 27 15:26 config.SAM.mk
-rwxr--r-- 1 root root 3102 Sep 27 12:51 config.mk
-rw-r--r-- 1 root sys 396 Jun 19 12:30 space.h
And sure enough: /stand exists...
The same thing happens for VxFS or NFS (V3) filesystems.
The order of the options (-depth, -empty) isn't significant.
Martin
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- find 4.1: incorrect "No such file or directory" using -empty and -depth,
Martin Jost <=