Author Topic: bug with console mode  (Read 6307 times)

0 Members and 1 Guest are viewing this topic.

pupusse

  • Guest
bug with console mode
« on: March 21, 2008, 01:57:28 PM »
 ???  As I use avast in console mode , I meet a problem with some files names.

As I want to scan folder : /mnt/hda1/my files
I write avast -a -c -t=A /mnt/hda1/my\ files

Avast answers : /mnt/hda1/my does not exist
                         \files dos not exist

It seems there is a bug with long names  ::)

Have you been reported this problem ?

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67194
Re: bug with console mode
« Reply #1 on: March 21, 2008, 02:01:10 PM »
Won't this work?

-a -c -t=A "/mnt/hda1/my files"
or
-a -c -t=A "/mnt/hda1/my files/"
The best things in life are free.

pupusse

  • Guest
Re: bug with console mode
« Reply #2 on: March 21, 2008, 04:29:32 PM »
no , it does not work :

/mnt/hda1/my [scan error : no such file or directory]
files/ [scan error : invalid argument]


very strange isn't it ?   ???

pupusse

  • Guest
Re: bug with console mode
« Reply #3 on: March 30, 2008, 09:52:19 AM »
Will someone propose me a solution ?

if it is a bug , Avast should fix it  ;)

Offline zilog

  • Avast team
  • Advanced Poster
  • *
  • Posts: 957
  • or #f0; daa; add a,#a0; adc a,#40
Re: bug with console mode
« Reply #4 on: April 07, 2008, 01:13:35 PM »
Will someone propose me a solution ?

if it is a bug , Avast should fix it  ;)

"avast" is a double-wrapper around avastcmd-derived scanner, not directly an executable application.
the "flaw" was a consequence of $* expansion in its wrapper script, the app itself is OK.

change the last line of the script (/usr/lib/avast4workstation/bin/wrapper-script.sh) from:
$AVAST_PREFIX/bin/$programname $*

to
$AVAST_PREFIX/bin/$programname "$@"

thanks for the report, pupusse!

regards,
PC
May's Law: Software efficiency halves every 18 months, compensating Moore's Law. (David May, INMOS)

pupusse

  • Guest
Re: bug with console mode
« Reply #5 on: April 07, 2008, 07:01:21 PM »
 :)  very fine !!!! it works  :)

now the long-named files are scanned in console mode


Many thanx             :D