Fossil

Check-in [1eb9496c48]
Login

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

Overview
Comment:revert [9122ad308a]. It appears that file_access() cannot bries on win32
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 1eb9496c48507ab892babfa3859d4da5f14a5cdf
User & Date: jan.nijtmans 2013-03-04 19:18:10.480
Context
2013-03-05
01:26
Fix artifact links for ticket attachments. check-in: 3b09348fd4 user: mistachkin tags: trunk
2013-03-04
23:13
Revert check-in [3a74f9fe52], which added a special warning for overly long lines being detected as binary files. Closed-Leaf check-in: dd9e030bc9 user: mistachkin tags: noLineLenWarning
20:06
Check on writability of the home directory appears too restricted. Writability of the $HOME/.fossil file should be sufficient for fossil to operate. Closed-Leaf check-in: 1e90d43d76 user: jan.nijtmans tags: home-check-too-restricted
19:18
revert [9122ad308a]. It appears that file_access() cannot bries on win32 check-in: 1eb9496c48 user: jan.nijtmans tags: trunk
16:12
Merge in various complications needed to support CYGWIN. check-in: d95cbba2e6 user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/db.c.
824
825
826
827
828
829
830

831
832
833

834
835
836
837
838
839
840
    fossil_fatal("cannot locate home directory - "
                 "please set the HOME environment variable");
  }
#endif
  if( file_isdir(zHome)!=1 ){
    fossil_fatal("invalid home directory: %s", zHome);
  }

  if( file_access(zHome, W_OK) ){
    fossil_fatal("home directory %s must be writeable", zHome);
  }

  g.zHome = mprintf("%/", zHome);
#if defined(_WIN32) || defined(__CYGWIN__)
  /* . filenames give some window systems problems and many apps problems */
  zDbName = mprintf("%//_fossil", zHome);
#else
  zDbName = mprintf("%s/.fossil", zHome);
#endif







>



>







824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
    fossil_fatal("cannot locate home directory - "
                 "please set the HOME environment variable");
  }
#endif
  if( file_isdir(zHome)!=1 ){
    fossil_fatal("invalid home directory: %s", zHome);
  }
#if !defined(_WIN32)
  if( file_access(zHome, W_OK) ){
    fossil_fatal("home directory %s must be writeable", zHome);
  }
#endif
  g.zHome = mprintf("%/", zHome);
#if defined(_WIN32) || defined(__CYGWIN__)
  /* . filenames give some window systems problems and many apps problems */
  zDbName = mprintf("%//_fossil", zHome);
#else
  zDbName = mprintf("%s/.fossil", zHome);
#endif