Coda File System

Bug in 'backup'

From: Kurt Huwig <kurt_at_huwig.de>
Date: Tue, 12 Oct 1999 22:52:07 +0200
in 'coda-src/volutil/backup.cc':

int main(int argc, char **argv) {
[...]
    char dumpdir[MAXPATHLEN];
[...]
    dumpdir[0]='\0';
[...]
        } else if(dumpdir[0] == '\0') { /* Assume 2nd unrecognized arg
is dumpdir
            strncpy(dumpdir, argv[1], MAXPATHLEN);
[...]
    if (dumpdir) {      /* User specified a dump directory! */

The last line should be replaced by

    if( dumpdir[ 0 ] ) {      /* User specified a dump directory! */

otherwise, it has no effect. I'm compiling it right now, but I upgraded
to 5.3.2, so I have to rebuild everything...

Kurt
-- 
-------------------------------------------------------------
Impossible doesn't exist!             Unm�glich gibt's nicht!
Difficult exists.                           Schwierig gibt's.
Received on 1999-10-12 16:58:35