Fossil

Check-in [a0dd51e9]
Login

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

Overview
Comment:Allow the FOSSIL_USER environment variable to be used as a fallback when creating a new repository.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:a0dd51e9af4a7a7c2dad064e37cd7f112850f3c7
User & Date: mistachkin 2013-01-13 02:01:18
Context
2013-01-13
18:38
Added new "dbstat" command, mostly analog to the /stat web page, but not called "stat" to avoid breaking any "stat==status" typing habits. check-in: 1dd49323 user: stephan tags: trunk
02:01
Allow the FOSSIL_USER environment variable to be used as a fallback when creating a new repository. check-in: a0dd51e9 user: mistachkin tags: trunk
2013-01-11
18:12
Off-by-one error in regexp \u escape sequence parsing. Regexp \x escape sequence should only accept exactly 2 hex digits. check-in: e4ca677a user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/db.c.

1220
1221
1222
1223
1224
1225
1226



1227
1228
1229
1230
1231
1232
1233
** Create the default user accounts in the USER table.
*/
void db_create_default_users(int setupUserOnly, const char *zDefaultUser){
  const char *zUser = zDefaultUser;
  if( zUser==0 ){
    zUser = db_get("default-user", 0);
  }



  if( zUser==0 ){
#if defined(_WIN32)
    zUser = fossil_getenv("USERNAME");
#else
    zUser = fossil_getenv("USER");
#endif
  }







>
>
>







1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
** Create the default user accounts in the USER table.
*/
void db_create_default_users(int setupUserOnly, const char *zDefaultUser){
  const char *zUser = zDefaultUser;
  if( zUser==0 ){
    zUser = db_get("default-user", 0);
  }
  if( zUser==0 ){
    zUser = fossil_getenv("FOSSIL_USER");
  }
  if( zUser==0 ){
#if defined(_WIN32)
    zUser = fossil_getenv("USERNAME");
#else
    zUser = fossil_getenv("USER");
#endif
  }