checkout.c (102843) | checkout.c (107487) |
---|---|
1/* 2 * Copyright (c) 1992, Brian Berliner and Jeff Polk 3 * Copyright (c) 1989-1992, Brian Berliner 4 * 5 * You may distribute under the terms of the GNU General Public License as 6 * specified in the README file that comes with the CVS source distribution. 7 * 8 * Create Version --- 20 unchanged lines hidden (view full) --- 29 * in two files, Repository and Entries. The first contains the name of the 30 * repository. The second contains one line for each registered file, 31 * consisting of the version number it derives from, its time stamp at 32 * derivation time and its name. Both files are normal files and can be 33 * edited by the user, if necessary (when the repository is moved, e.g.) 34 */ 35 36/* | 1/* 2 * Copyright (c) 1992, Brian Berliner and Jeff Polk 3 * Copyright (c) 1989-1992, Brian Berliner 4 * 5 * You may distribute under the terms of the GNU General Public License as 6 * specified in the README file that comes with the CVS source distribution. 7 * 8 * Create Version --- 20 unchanged lines hidden (view full) --- 29 * in two files, Repository and Entries. The first contains the name of the 30 * repository. The second contains one line for each registered file, 31 * consisting of the version number it derives from, its time stamp at 32 * derivation time and its name. Both files are normal files and can be 33 * edited by the user, if necessary (when the repository is moved, e.g.) 34 */ 35 36/* |
37 * $FreeBSD: head/contrib/cvs/src/checkout.c 102843 2002-09-02 05:57:14Z peter $ | 37 * $FreeBSD: head/contrib/cvs/src/checkout.c 107487 2002-12-02 03:17:49Z peter $ |
38 */ 39 40#include <assert.h> 41#include "cvs.h" 42 43static char *findslash PROTO((char *start, char *p)); 44static int checkout_proc PROTO((int argc, char **argv, char *where, 45 char *mwhere, char *mfile, int shorten, --- 415 unchanged lines hidden (view full) --- 461 else if( errno == ENOENT ) 462 { 463 if ( last_component( where ) != where ) 464 { 465 /* where - last_component( where ) */ 466 char *parent; 467 468 /* strip the last_component */ | 38 */ 39 40#include <assert.h> 41#include "cvs.h" 42 43static char *findslash PROTO((char *start, char *p)); 44static int checkout_proc PROTO((int argc, char **argv, char *where, 45 char *mwhere, char *mfile, int shorten, --- 415 unchanged lines hidden (view full) --- 461 else if( errno == ENOENT ) 462 { 463 if ( last_component( where ) != where ) 464 { 465 /* where - last_component( where ) */ 466 char *parent; 467 468 /* strip the last_component */ |
469 where_location = strdup( where ); | 469 where_location = xstrdup( where ); |
470 parent = last_component( where_location ); 471 parent[-1] = '\0'; 472 473 if( chdir( where_location ) != -1 ) 474 { 475 where_location = xgetwd(); 476 if( where_location == NULL ) 477 error( 1, errno, "could not get working directory (nominally `%s')", where_location ); --- 775 unchanged lines hidden --- | 470 parent = last_component( where_location ); 471 parent[-1] = '\0'; 472 473 if( chdir( where_location ) != -1 ) 474 { 475 where_location = xgetwd(); 476 if( where_location == NULL ) 477 error( 1, errno, "could not get working directory (nominally `%s')", where_location ); --- 775 unchanged lines hidden --- |