Fossil

Check-in [7700ae1c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Only make the URL user an admin if --once is not specified to allow the shell user to become the admin user. [Wrong; should not assume what the default user is]
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | mistake
Files: files | file ages | folders
SHA1:7700ae1c2276cb163ada6189e43d8b592fbdb6f5
User & Date: andybradford 2013-11-25 15:00:17
Original Comment: Only make the URL user an admin if --once is not specified to allow the shell user to become the admin user.
Context
2013-11-25
15:00
Only make the URL user an admin if --once is not specified to allow the shell user to become the admin user. [Wrong; should not assume what the default user is] Closed-Leaf check-in: 7700ae1c user: andybradford tags: mistake
10:12
Fix handling of UTF-8 paths on Cygwin (SQLite's "cygUtf8" branch). Meant for testing. This fix is Cygwin-only. check-in: 9f58fc65 user: jan.nijtmans tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/clone.c.

132
133
134
135
136
137
138
139

140
141
142
143
144
145
146
  if( file_size(g.argv[3])>0 ){
    fossil_fatal("file already exists: %s", g.argv[3]);
  }

  zDefaultUser = find_option("admin-user","A",1);

  url_parse(g.argv[2], urlFlags);
  if( zDefaultUser==0 && g.urlUser!=0 ) zDefaultUser = g.urlUser;

  if( g.urlIsFile ){
    file_copy(g.urlName, g.argv[3]);
    db_close(1);
    db_open_repository(g.argv[3]);
    db_record_repository_filename(g.argv[3]);
    url_remember();
    if( !bPrivate ) delete_private_content();







|
>







132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
  if( file_size(g.argv[3])>0 ){
    fossil_fatal("file already exists: %s", g.argv[3]);
  }

  zDefaultUser = find_option("admin-user","A",1);

  url_parse(g.argv[2], urlFlags);
  if( zDefaultUser==0 && g.urlUser!=0
      && ( urlFlags & URL_REMEMBER ) ) zDefaultUser = g.urlUser;
  if( g.urlIsFile ){
    file_copy(g.urlName, g.argv[3]);
    db_close(1);
    db_open_repository(g.argv[3]);
    db_record_repository_filename(g.argv[3]);
    url_remember();
    if( !bPrivate ) delete_private_content();