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_into[ignore.c:486] pattern:  case, ignore
09:10:32.454 waa__find_common_base[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_base[waa.c:1808] path is /
09:10:32.454 waa__find_common_base[waa.c:1826] len after is 1
09:10:32.454 waa__find_common_base[waa.c:1846] now standing at /
09:10:32.454 waa__find_common_base[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\Harddrive0\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-sicherheit.web.de/freescan/?mc=022222

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to