[BACK]Return to cvs.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/cvs.c between version 1.145 and 1.146

version 1.145, 2008/05/28 17:12:00 version 1.146, 2008/05/30 16:11:32
Line 217 
Line 217 
         if (argc == 0)          if (argc == 0)
                 usage();                  usage();
   
         /*  
          * check the tmp dir, either specified through  
          * the environment variable TMPDIR, or via  
          * the global option -T <dir>  
          */  
         if (stat(cvs_tmpdir, &st) == -1)  
                 fatal("stat failed on `%s': %s", cvs_tmpdir, strerror(errno));  
         else if (!S_ISDIR(st.st_mode))  
                 fatal("`%s' is not valid temporary directory", cvs_tmpdir);  
   
         cmdp = cvs_findcmd(argv[0]);          cmdp = cvs_findcmd(argv[0]);
         if (cmdp == NULL) {          if (cmdp == NULL) {
                 fprintf(stderr, "Unknown command: `%s'\n\n", argv[0]);                  fprintf(stderr, "Unknown command: `%s'\n\n", argv[0]);
Line 236 
Line 226 
                             cvs_cdt[i]->cmd_name, cvs_cdt[i]->cmd_descr);                              cvs_cdt[i]->cmd_name, cvs_cdt[i]->cmd_descr);
                 exit(1);                  exit(1);
         }          }
   
           /*
            * check the tmp dir, either specified through
            * the environment variable TMPDIR, or via
            * the global option -T <dir>
            */
           if (stat(cvs_tmpdir, &st) == -1)
                   fatal("stat failed on `%s': %s", cvs_tmpdir, strerror(errno));
           else if (!S_ISDIR(st.st_mode))
                   fatal("`%s' is not valid temporary directory", cvs_tmpdir);
   
         if (cvs_readrc == 1 && cvs_homedir != NULL) {          if (cvs_readrc == 1 && cvs_homedir != NULL) {
                 cvs_read_rcfile();                  cvs_read_rcfile();

Legend:
Removed from v.1.145  
changed lines
  Added in v.1.146