File: execdir-in-unreadable.exp

package info (click to toggle)
findutils 4.10.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 26,108 kB
  • sloc: ansic: 126,635; sh: 11,486; yacc: 1,852; makefile: 844; exp: 839; python: 66; sed: 16
file content (11 lines) | stat: -rw-r--r-- 308 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
# tests for -execdir ... \+ in a directory which is not readable
if { [ safe_path ] } {
    exec rm -rf tmp
    exec mkdir tmp
    exec chmod 755 tmp
    exec mkdir tmp/sub
    exec chmod 300 tmp/sub
    find_start p { tmp -maxdepth 1 -execdir true \{\} \+ }
    exec chmod 700 tmp/sub
    exec rm -rf tmp
}