==================================================================
  Please DO NOT REPLY to this mail or send email to the developers
  about this bug. Please follow-up to Bugzilla using this 
link:http://bugs.contribs.org/show_bug.cgi?id=8294

  Have you checked the Frequently Asked Questions (FAQ)?
    http://wiki.contribs.org/SME_Server:Documentation:FAQ

  Please also take the time to read the following useful guide:
    http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
==================================================================


            Bug ID: 8294
           Summary: smeserver-affa /usr/bin/find: warning: you have
                    specified the -maxdepth option
    Classification: Contribs
           Product: SME Contribs
           Version: 8.1
          Hardware: ---
                OS: ---
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: smeserver-affa (unmaintained)
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

Created attachment 4560
  --> http://bugs.contribs.org/attachment.cgi?id=4560&action=edit
smeserver-affa find error diff

When I did affa --rise I saw the following error :

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

The index files were removed. I looked to see what was causing the error which
was generated from here :

return 'USERS=`/usr/bin/find /home/e-smith/files/users -type d -maxdepth
1`;USERS="/home/e-smith/ $USERS"; for u in $USERS ;  do ! /usr/bin/test -d
$u/Maildir && continue; /usr/bin/find $u/Maildir -maxdepth 2 -type f -name
".imap.index*" -exec /bin/rm -f \'{}\' \; ; /usr/bin/find $u/Maildir -maxdepth
2 -type f -name "dovecot.index*" -exec /bin/rm -f \'{}\' \; ; done';

Specifically :

/usr/bin/find /home/e-smith/files/users -type d -maxdepth 1


I changed this to :

/usr/bin/find /home/e-smith/files/users -maxdepth 1 -type d

And it seems much happier.

I have attached a diff for this. I'm not sure whether to roll this in with the
earlier bug : http://bugs.contribs.org/show_bug.cgi?id=8293 or to do it
separately.

Can someone have a look at these and let me know if they are OK and I will
build a proper patch.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at http://lists.contribs.org/mailman/public/contribteam/

Reply via email to