Welcome to CRUX bug tracking.

FS#1789 - prtsweep removes .signatures and fails when files are in the top directory

Attached to Project: CRUX
Opened by Jan-Michael Franz (jmf) - Monday, 09 March 2020, 22:43 GMT
Task Type Bug Report
Category tools → prt-utils
Status New
Assigned To No-one
Operating System CRUX
Severity High
Priority Normal
Reported Version 3.5
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


There are two prtsweep issues:

- The prtsweep utility currently removes all .signature files. That file type should be added to the KEEP_FILES= list.

- The prtsweep utility fails to delete empty directories (-d option) when a non-directory file, like the COPY and COPYRIGHT files in opt/, is present.
The function "removeemptydir" should be modified to check if the found object is actually a directory.
This task depends upon