Menu

#12 Afick on Sol. 10 does not use /etc/afick.conf by default

closed
None
5
2011-06-08
2011-06-07
No

On Solaris 10, afick (testing with 2.15 version) does not by default use /etc/afick.conf, as it does on Linux.
If I initialize the database with "perl afick.pl -c /etc/afick.conf -i", I get what I expected, which is only about 50+ files in the db using my simple test configuration.
If I initialize the database with "perl afick.pl -i", I get 20000+ files in the database.
If I rename afick.conf and linux.conf in the afick install directory, and then do "perl afick.pl -i", I get error "missing opt_configfile name (-c flag) and default config file" followed by the Usage help, even though /etc/afick.conf is available on the system.
Root's PATH is a bit different on Solaris versus Linux, but /etc is not included in the PATH on either one of them.

Discussion

  • Margaret Garland

    By the way, I am using the perl which came with each OS. On Linux: perl -v returns "This is perl, v5.8.8 built for x86_64-linux-thread-multi". On Solaris 10, perl -v returns "This is perl, v5.8.4 built for i86pc-solaris-64int"

     
  • eric gerbier

    eric gerbier - 2011-06-07
    • assigned_to: nobody --> gerbier
     
  • eric gerbier

    eric gerbier - 2011-06-07

    I'm sorry, but the man page does not match the current code.

    in last release, if the -c option is not used,
    - on linux, will try to open /etc/afick.conf
    - on windows, will try to open windows.conf
    - else will try to open afick.conf

    I will have to fix the doc and/or change the code

     
  • eric gerbier

    eric gerbier - 2011-06-08

    In 2.17 release, I will change : unix and linux will work in the same way : first search for /etc/afick.conf, then search for afick.conf in installation directory

     
  • eric gerbier

    eric gerbier - 2011-06-08
    • status: open --> closed
     
  • eric gerbier

    eric gerbier - 2011-06-08

    afick 2.17 is released today and it fix this this problem