Menu

#18 Occasional find warning

open
nobody
None
5
2014-08-27
2006-02-10
No

Sometimes flexbackup report this warning:

find: warning: you have specified the -xdev option
after a non-option argument -regex, but options are
not positional (-xdev affects tests specified before
it as well as those specified after it). Please
specify options before other arguments.

Environment: flexbackup 1.2.1 rpm, fedora core 4,
findutils-4.2.20-1

Fix: moving the follwing line:

$cmd .= "$::mountpoint_flag ";

in function file_list_cmd before the:

if (defined(%{$::prune{$prunekey}})) {

conditional statement fixes the problem, but I don't
know if it has any unwanted side effect because I have
no way to test with other options enabled. It
shouldn't because it's a "no parameters" find option
flag.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.