help-cfengine
[Top][All Lists]
Advanced

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

Re: copy / timestamp (fixed)


From: skaar
Subject: Re: copy / timestamp (fixed)
Date: Thu, 10 Jul 2003 12:21:57 -0400
User-agent: Mutt/1.4i

the problem is rather that timestamp didn't work with repository
set, this would fix that:

--- cfengine-2.0.7p3_orig/src/image.c   2003-04-30 16:32:58.000000000 -0400
+++ cfengine-2.0.7p3/src/image.c        2003-07-10 12:21:08.000000000 -0400
@@ -1572,12 +1572,12 @@
    return false;
    }
 
-if ((IMAGEBACKUP == 'y') && backupisdir)
+if ((IMAGEBACKUP != 'n') && backupisdir)
    {
    snprintf(OUTPUT,bufsize,"Cannot move a directory to repository,
leaving at %s",backup);
    CfLog(cfinform,OUTPUT,"");
    }
-else if ((IMAGEBACKUP == 'y') && Repository(backup,ip->repository))
+else if ((IMAGEBACKUP != 'n') && Repository(backup,ip->repository))
    {
    unlink(backup);
    }



* skaar (skaar@aol.net) [030710 11:38]:
> 
> ignore that - it seems to be a different problem.
> 
> * skaar (skaar@aol.net) [030710 09:32]:
> > Mark,
> > 
> > did you add backup=timestamp to copy: ? It doesn't work
> > 
> > install.c:
> > if ((strcmp(value,"timestamp") == 0))
> >    {
> >    *pflag = 's';
> >    return;
> >    }
> > 
> > image.c:
> >    if (IMAGEBACKUP == 's')
> >       {
> >       strcat(backup,stamp);
> >       }
> > 
> >    strcat(backup,CF_SAVED);
> > 
> > shouldn't that be:
> > image.c:
> >    if (IMAGEBACKUP == 's')
> >       {
> >       strcat(backup,stamp);
> >       }
> >    else
> >       {
> >       strcat(backup,CF_SAVED);
> >       }
> > 
> > -- 
> > /skaar
> > 
> > +-------------------------------------------------------------------+
> > +----- skaar@aol.net                   kent skaar   ----------------+
> > +----- internet services: infrastructure security   ----------------+
> > +-------------------------------------------------------------------+
> > 
> > 
> > _______________________________________________
> > Help-cfengine mailing list
> > Help-cfengine@gnu.org
> > http://mail.gnu.org/mailman/listinfo/help-cfengine
> 
> -- 
> /skaar
> 
> +-------------------------------------------------------------------+
> +----- skaar@aol.net                   kent skaar   ----------------+
> +----- internet services: infrastructure security   ----------------+
> +-------------------------------------------------------------------+
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine

-- 
/skaar

+-------------------------------------------------------------------+
+----- skaar@aol.net                   kent skaar   ----------------+
+----- internet services: infrastructure security   ----------------+
+-------------------------------------------------------------------+




reply via email to

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