~ubuntu-branches/ubuntu/feisty/cvsd/feisty

« back to all changes in this revision

Viewing changes to cfgfile.c

  • Committer: Bazaar Package Importer
  • Author(s): Arthur de Jong
  • Date: 2006-08-20 14:22:58 UTC
  • mfrom: (2.1.3 edgy)
  • Revision ID: james.westby@ubuntu.com-20060820142258-drqc8vgtguu884q6
Tags: 1.0.13
* cvsd-buildroot: further portability improvements on 64 bit platforms
* added Portuguese debconf translation by Ricardo Silva (closes: #383067)
* added warnings and errors on failing to close a socket
* added LSB headers to init script

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
   GNU General Public License for more details.
15
15
 
16
16
   You should have received a copy of the GNU General Public License
17
 
   along with this program; if not, write to the Free Software Foundation,
18
 
   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
17
   along with this program; if not, write to the Free Software
 
18
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
19
*/
20
20
 
21
21
 
373
373
        cfg->cvscmd=xstrdup(opts[1]);
374
374
      }
375
375
    }
 
376
    else if (strcmp(opts[0],"CvsArgs")==0)
 
377
    {
 
378
      if (nopts<2)
 
379
      {
 
380
        log_log(LOG_ERR,"%s:%d: CvsArgs: wrong number of arguments",filename,lnr);
 
381
        exit(1);
 
382
      }
 
383
      for (i=1;i<nopts;i++)
 
384
      {
 
385
        /* TODO: check if arguments look like valid cvs parameters and issue warning otherwise */
 
386
        tmp=(char *)xmalloc((strlen(opts[i])+1)*sizeof(char));
 
387
        strcpy(tmp,opts[i]);
 
388
        cfg_addcvsarg(cfg,tmp);
 
389
      }
 
390
    }
376
391
    else if (strcmp(opts[0],"Limit")==0)
377
392
    {
378
393
#ifdef HAVE_SETRLIMIT