Fossil

Check-in [5853fcf1]
Login

Check-in [5853fcf1]

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

Overview
Comment:Fix a memcmp() that really should be fossil_strcmp().
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5853fcf132800f902f4586c7f24b286e88a6ac7c
User & Date: drh 2015-11-14 19:03:10
Context
2015-11-17
19:52
Revamp the user list setup page. Show the last change time and expiration date for each login. Make the user list sortable using javascript. ... (check-in: 01b13199 user: drh tags: trunk)
14:29
Move the side-bar documentation for the user-list page onto a separate page accessible from the "Help" submen of the user-list page, for improved readability. ... (check-in: 18df719e user: drh tags: user-config-revamp)
2015-11-16
01:45
Remove deprecated <center> tags. ... (check-in: d57f2395 user: Isius tags: html-cleanup)
2015-11-14
19:03
Fix a memcmp() that really should be fossil_strcmp(). ... (check-in: 5853fcf1 user: drh tags: trunk)
16:16
Enhanced description of how to set up the /proc filesystem inside of a chroot jail. ... (check-in: 28a1da05 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/sync.c.
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
    return 0;
  }
  if( flags==SYNC_PUSH && db_get_boolean("dont-push",0) ){
    return 0;
  }
  zAutosync = db_get("autosync", 0);
  if( zAutosync ){
    if( (flags & SYNC_PUSH)!=0 && memcmp(zAutosync,"pull",4)==0 ){
      return 0;   /* Do not auto-push when autosync=pullonly */
    }
    if( is_false(zAutosync) ){
      return 0;   /* Autosync is completely off */
    }
  }else{
    /* Autosync defaults on.  To make it default off, "return" here. */







|







36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
    return 0;
  }
  if( flags==SYNC_PUSH && db_get_boolean("dont-push",0) ){
    return 0;
  }
  zAutosync = db_get("autosync", 0);
  if( zAutosync ){
    if( (flags & SYNC_PUSH)!=0 && fossil_strcmp(zAutosync,"pull")==0 ){
      return 0;   /* Do not auto-push when autosync=pullonly */
    }
    if( is_false(zAutosync) ){
      return 0;   /* Autosync is completely off */
    }
  }else{
    /* Autosync defaults on.  To make it default off, "return" here. */