bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: htags -d not working?


From: Shigio Yamaguchi
Subject: Re: htags -d not working?
Date: Thu, 02 Sep 2004 06:52:34 +0900

> That doesn't work here, it fails when I try to run htags :(  Are you 
> running global-4.8 from the release tarball?

The error was occured.
Sorry, it seems that I have used different version.

I have fixed it.
Thank you for your report!

Index: htags.c
===================================================================
RCS file: /cvsroot/global/global/htags/htags.c,v
retrieving revision 1.14
diff -c -r1.14 htags.c
*** htags.c     1 Sep 2004 14:44:33 -0000       1.14
--- htags.c     1 Sep 2004 21:55:17 -0000
***************
*** 1481,1491 ****
                strbuf_close(sb);
        }
        /*
!        * get root, cwd and dbpath.
         */
!       getdbpath(cwdpath, rootpath, dbpath, 0);
        if (arg_dbpath[0])
                strlimcpy(dbpath, arg_dbpath, sizeof(dbpath));
  
        if (cflag && !usable("gzip")) {
                warning("'gzip' command not found. -c option ignored.");
--- 1480,1493 ----
                strbuf_close(sb);
        }
        /*
!        * get dbpath.
         */
!       if (!getcwd(cwdpath, sizeof(cwdpath)))
!               die("cannot get current directory.");
        if (arg_dbpath[0])
                strlimcpy(dbpath, arg_dbpath, sizeof(dbpath));
+       else
+               strlimcpy(dbpath, cwdpath, sizeof(cwdpath));
  
        if (cflag && !usable("gzip")) {
                warning("'gzip' command not found. -c option ignored.");
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]