Amanda-Users

Re: 2.6.2alpha-20090216 busted by typu (non-repeatable)

2009-02-17 10:35:15
Subject: Re: 2.6.2alpha-20090216 busted by typu (non-repeatable)
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: amanda-users AT amanda DOT org
Date: Tue, 17 Feb 2009 10:21:27 -0500
On Tuesday 17 February 2009, Dustin J. Mitchell wrote:
>On Tue, Feb 17, 2009 at 12:18 AM, Gene Heskett <gene.heskett AT verizon DOT 
>net> wrote:
>> restore.c: In function 'restore':
>> restore.c:989: error: stray '`' in program
>
>Weird - the last time that file was changed was on the 10th, and it
>wasn't anywhere near that line.  I don't see a ` character anywhere in
>the file.  Can you send the lines around line 989 in your version of
>that file?
>
>Dustin

972-1008
   if (need_compress) {
        /*
         * Insert a compress pipe
         */
        switch(myout->comp_enc_pid = fork()) {
        case -1:
            error(_("could not fork for %s: %s"), COMPRESS_PATH, 
strerror(errno));
            /*NOTREACHED*/

        default:
            aclose(pipes[stage].pipe[0]);
            aclose(pipes[stage+1].pipe[1]);
            stage++;
            break;

        case 0:
            if(dup2(pipes[stage].pipe[0], 0) == -1) {
                error(_("error compress stdin [dup2 %d %d: %s]"), stage,
                  pipes[stage].pipe[0], strerror(errno));
                /*NOTREACHED*/
            }

            if(dup2(pipes[stage+1].pipe[1], 1) == -1) {
989                error(_("error compress stdout [dup2 %d %d: %s]"), stage + 1,
                  pipes[stage+1].pipe[1], strerror(errno));
                  /*NOTREACHED*/
            }
            if (*flags->comp_type == '\0') {
                flags->comp_type = NULL;
            }

            safe_fd(-1, 0);
            (void) execlp(COMPRESS_PATH, COMPRESS_PATH, flags->comp_type, (char 
*)0);
            error(_("could not exec %s: %s"), COMPRESS_PATH, strerror(errno));
            /*NOTREACHED*/
        }
    } else if(need_uncompress) {

And obviously I don't see it either, unless its hidden by the %stuffs.  In 
vim, a "/`"enter says not found.  I'll try making it again. FWIW, I'm also 
using ccache.

And this time, no error. /me, goes off scratching head, wondering where else 
such an error might creep in silently.

Sorry for the noise/false alarm.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
As long as we're going to reinvent the wheel again, we might as well try making
it round this time.
- Mike Dennison

<Prev in Thread] Current Thread [Next in Thread>