Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-2670

svn client crashes during commit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • all
    • 1.5-consider
    • libsvn_client
    • None
    • FreeBSD

    Description

      svn client crashes when during commiting files from different directories.
      This problem is connected with FreeBSD and chroot/jail.
      If working directory is chrooted user cann't commit files from different
      directories.
      
      Here is a patch to this issue:
      --- subversion-1.4.0/subversion/libsvn_client/commit.c  Thu Nov 30 11:05:36 2006
      *************** svn_client_commit3(svn_commit_info_t **c
      *** 1268,1273 ****
      --- 1268,1283 ----
                                         base_dir, rel_targets,
                                         pool));
      
      +       /*
      +         FIX for FreeBSD+chroot.
      +         When directory is chrooted or just it is root
      +         directory svn client crashes when one wants to commit
      +         files from different directories.
      +       */
      +       if (!*base_dir) {
      +         base_dir = apr_pstrdup(pool, "/");
      +       }
      +
              for (i = 0; i < rel_targets->nelts; i++)
                {
                  const char *parent_dir, *name;
      

      Original issue reported by bochen

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              subversion-importer Subversion Importer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: