Страница 1 из 1
find: relative path potentially not saf
Добавлено: 2014-01-15 1:54:13
Volodymyr
Есть скрипт:
Код: Выделить всё
find /store/host0/cache -mtime +1d -delete
find /store/host1/cache -mtime +1d -dele
имеем ошибку
Код: Выделить всё
find: -delete: /store/host1/cache: relative path potentially not safe
визуально разница только в том что в
/store/host1/cache нету файлов, а /store/host0/cache есть.
Или дело не в этом?
Re: find: relative path potentially not saf
Добавлено: 2014-01-18 23:33:39
Alex Keda
ой, а чё-то писали даже в UPDATING про это...
Re: find: relative path potentially not saf
Добавлено: 2014-01-18 23:36:05
Alex Keda
Код: Выделить всё
20130802:
find -delete can now delete the pathnames given as arguments,
instead of only files found below them or if the pathname did
not contain any slashes. Formerly, the following error message
would result:
find: -delete: <path>: relative path potentially not safe
Deleting the pathnames given as arguments can be prevented
without error messages using -mindepth 1 or by changing
directory and passing "." as argument to find. This works in the
old as well as the new version of find.
Re: find: relative path potentially not saf
Добавлено: 2014-01-18 23:47:34
Volodymyr
Спасибо.