Skip to content

check-tmp.sh doesn't detect huge numbers of dirs or files #30

Open
@nqb

Description

On a setup, I got many files created in /tmp with following layout:

# tree adcli-krb5-YfnplZ/
adcli-krb5-YfnplZ/
└── krb5.d
    └── adcli-krb5-conf-8YbXQa    

check-tmp.sh didn't detect that issue due to maxdepth and type options.

I think we could remove -maxdepth 1 option in:

if [ `find /tmp/ -maxdepth 1 -type f | wc -l` -gt $MAX_TMP_FILES ] ; then

because we will always search for many files in /tmp. But I'm sure this option has not been put here by chance.

What's your opinion on this ?

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions