Login | Register
My pages Projects Community openCollabNet

Discussions > users > Bug in fsvs-1.1.0?

fsvs
Discussion topic

Back to topic list

Bug in fsvs-1.1.0?

Author kdoerrscheidt
Full name Klaus Doerrscheidt
Date 2007-03-14 03:54:01 PDT
Message Hi all,

after moving from fsvs-1.0.17 to fsvs-1.1.0 I get the following error when requesting status data:

# cd /
# fsvs status -dv
09:10:32.452 main[fsvs.c:456] no argument at optind=3 of 3
09:10:32.453 main[fsvs.c:560] LC_ALL gives de_DE.utf8
09:10:32.453 main[fsvs.c:567] LC_CTYPE gives de_DE.utf8
09:10:32.453 main[fsvs.c:578] codeset found to be UTF-8
09:10:32.453 main[fsvs.c:586] codeset: using identity
09:10:32.453 main[fsvs.c:610] optind=2 per_sts=128 action=status
09:10:32.453 main[fsvs.c:613] argument 1: status
09:10:32.453 ign__new_pattern[ignore.c:955] getting 1 new entries - max is 0, used are 0
09:10:32.453 ign__new_pattern[ignore.c:1014] new pattern INODE:252:7:24380271
09:10:32.453 ign___init_pattern_i​nto[ignore.c:486] pattern: case, ignore
09:10:32.454 waa__find_common_bas​e[waa.c:1788] need 14 bytes for 1 args
09:10:32.454 Increment[helper.c:413] adding //
09:10:32.454 hlp__pathcopy[helper.c:481] finished path is /
09:10:32.454 waa__find_common_bas​e[waa.c:1808] path is /
09:10:32.454 waa__find_common_bas​e[waa.c:1826] len after is 1
09:10:32.454 waa__find_common_bas​e[waa.c:1846] now standing at /
09:10:32.454 waa__find_common_bas​e[waa.c:1848] INTERNAL BUG
  len == 0
  Paths not even equal in separator - they have nothing in common!
Speicherzugriffsfehler

When I change the working directory to /root, everything works fine.

The initial checkin was done via svn+ssh from / with fsvs-1.0.17.

A quick fix that works for me is the following change in waa.c:

--- fsvs-1.1.0_orig/src/waa.c 2007-03-04 17:38:06.000000000 +0000
+++ fsvs-1.1.0/src/waa.c 2007-03-14 09:01:41.000000000 +0000
@@ -1841,7 +1841,7 @@
         * if the paths there are given as C:\X and D:\Y.
         * Using \.\devices\Harddr​ive0\Partition1\..​. or similar we could
         * avoid that. */
- while (len >0 && paths[0][len] != PATH_SEPARATOR)
+ while (len >1 && paths[0]+len != PATH_SEPARATOR)
                len--;
        DEBUGP("now standing at %s", paths[0]+len);
        BUG_ON(len == 0, "Paths not even equal in separator"

It's my first trip to the fsvs source code and I'm not 100% shure about the implications on the whole application.

Regards,

Klaus
____________________​____________________​____________________​___________
Viren-Scan für Ihren PC! Jetzt für jeden. Sofort, online und kostenlos.
Gleich testen! http://www.pc-sicher​heit.web.de/freescan​/?mc=022222

« Previous message in topic | 1 of 15 | Next message in topic »

Messages

Show all messages in topic

Bug in fsvs-1.1.0? kdoerrscheidt Klaus Doerrscheidt 2007-03-14 03:54:01 PDT
     Re: Bug in fsvs-1.1.0? pmarek P.Marek 2007-03-14 06:11:22 PDT
     Re: Bug in fsvs-1.1.0? pmarek P.Marek 2007-03-15 02:28:59 PDT
         Re: Bug in fsvs-1.1.0? kdoerrscheidt Klaus Doerrscheidt 2007-03-16 13:11:50 PDT
             Re: Bug in fsvs-1.1.0? pmarek P.Marek 2007-03-18 05:46:23 PDT
                 fsvs-1.1.0 compatibility with older versions? Mark J Hewitt <mjh at elsabio dot demon dot co dot uk> Mark J Hewitt <mjh at elsabio dot demon dot co dot uk> 2007-03-21 03:10:39 PDT
                     Re: fsvs-1.1.0 compatibility with older versions? pmarek P.Marek 2007-03-21 06:22:58 PDT
                         Re: fsvs-1.1.0 compatibility with older versions? Mark J Hewitt <mjh at elsabio dot demon dot co dot uk> Mark J Hewitt <mjh at elsabio dot demon dot co dot uk> 2007-03-21 08:07:56 PDT
                             Re: fsvs-1.1.0 compatibility with older versions? pmarek P.Marek 2007-03-21 09:27:46 PDT
                                 Re: fsvs-1.1.0 compatibility with older versions? Mark J Hewitt <mjh at elsabio dot demon dot co dot uk> Mark J Hewitt <mjh at elsabio dot demon dot co dot uk> 2007-03-21 09:34:30 PDT
                                     Re: fsvs-1.1.0 compatibility with older versions? pmarek P.Marek 2007-03-21 10:13:55 PDT
                                         Re: fsvs-1.1.0 compatibility with older versions? Mark J Hewitt <mjh at elsabio dot demon dot co dot uk> Mark J Hewitt <mjh at elsabio dot demon dot co dot uk> 2007-03-21 11:08:09 PDT
                                             Re: fsvs-1.1.0 compatibility with older versions? pmarek P.Marek 2007-03-21 11:20:33 PDT
                                             Re: fsvs-1.1.0 compatibility with older versions? kdoerrscheidt Klaus Doerrscheidt 2007-03-21 14:11:46 PDT
                                                 Re: fsvs-1.1.0 compatibility with older versions? Mark J Hewitt <mjh at elsabio dot demon dot co dot uk> Mark J Hewitt <mjh at elsabio dot demon dot co dot uk> 2007-03-21 16:09:26 PDT
Messages per page: