david+dated+ (David Banning)
2016-04-26 12:30:13 UTC
I am attempting to delete my .spamassassin files from my /tmp directory
putting a command in my crontab;
find /tmp/.spam* -mmin +360 -delete
renders the following error;
find: -delete: /tmp/.spamassassin10101hXUUVytmp: relative path potentially not safe
looking in past postings on this matter, post people add the -mindepth 1, however in my case while it elliminates the error,
it does not delete all the files, perhaps because some of the .spam* files are directories.
I wonder if someone has a solution for this.
putting a command in my crontab;
find /tmp/.spam* -mmin +360 -delete
renders the following error;
find: -delete: /tmp/.spamassassin10101hXUUVytmp: relative path potentially not safe
looking in past postings on this matter, post people add the -mindepth 1, however in my case while it elliminates the error,
it does not delete all the files, perhaps because some of the .spam* files are directories.
I wonder if someone has a solution for this.