Fossil

Check-in [e9fcc9af]
Login

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

Overview
Comment:add missing;
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | StvPrivateHook2
Files: files | file ages | folders
SHA1:e9fcc9afaed711f3ccf287fc1c51354e862bca6b
User & Date: Ratte 2010-10-24 06:53:36
Context
2010-10-26
19:01
merge from trunk check-in: 4260bc6a user: wolfgang tags: StvPrivateHook2
2010-10-24
06:53
add missing; check-in: e9fcc9af user: Ratte tags: StvPrivateHook2
2010-10-23
17:02
add privilege check to hook execution check-in: abd05f29 user: wolfgang tags: StvPrivateHook2
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/xfer.c.

107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
        break;
      case 'i':
        if( g.okWrite ) privOk = 1;
        break;
      case 'o':
        if( g.okRead ) privOk = 1;
        break;
      default
        fossil_print("Push hook wrong privilege type '%s'\n", zHookPriv);
    }
  }else{
    privOk = 1;
  }
  if( !privOk ){
    fossil_print("No privilege to activate hook!\n");







|







107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
        break;
      case 'i':
        if( g.okWrite ) privOk = 1;
        break;
      case 'o':
        if( g.okRead ) privOk = 1;
        break;
      default:
        fossil_print("Push hook wrong privilege type '%s'\n", zHookPriv);
    }
  }else{
    privOk = 1;
  }
  if( !privOk ){
    fossil_print("No privilege to activate hook!\n");