Fossil SCM
Fix to the new autopush privilege warning logic.
Commit
92406fa4454ffed0e93b782c4efae812013d7485ade052b80630ba2580575bff
Parent
14db745dfe74a7e…
1 file changed
+1
-1
+1
-1
| --- src/xfer.c | ||
| +++ src/xfer.c | ||
| @@ -2290,11 +2290,11 @@ | ||
| 2290 | 2290 | ** autopush following a commit. |
| 2291 | 2291 | */ |
| 2292 | 2292 | if( blob_eq(&xfer.aToken[0],"error") && xfer.nToken==2 ){ |
| 2293 | 2293 | char *zMsg = blob_terminate(&xfer.aToken[1]); |
| 2294 | 2294 | defossilize(zMsg); |
| 2295 | - if( (syncFlags && SYNC_IFABLE)!=0 | |
| 2295 | + if( (syncFlags & SYNC_IFABLE)!=0 | |
| 2296 | 2296 | && sqlite3_strlike("%not authorized to write%",zMsg,0)==0 ){ |
| 2297 | 2297 | autopushFailed = 1; |
| 2298 | 2298 | nErr++; |
| 2299 | 2299 | }else if( (syncFlags & SYNC_CLONE)==0 || nCycle>0 ){ |
| 2300 | 2300 | fossil_force_newline(); |
| 2301 | 2301 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -2290,11 +2290,11 @@ | |
| 2290 | ** autopush following a commit. |
| 2291 | */ |
| 2292 | if( blob_eq(&xfer.aToken[0],"error") && xfer.nToken==2 ){ |
| 2293 | char *zMsg = blob_terminate(&xfer.aToken[1]); |
| 2294 | defossilize(zMsg); |
| 2295 | if( (syncFlags && SYNC_IFABLE)!=0 |
| 2296 | && sqlite3_strlike("%not authorized to write%",zMsg,0)==0 ){ |
| 2297 | autopushFailed = 1; |
| 2298 | nErr++; |
| 2299 | }else if( (syncFlags & SYNC_CLONE)==0 || nCycle>0 ){ |
| 2300 | fossil_force_newline(); |
| 2301 |
| --- src/xfer.c | |
| +++ src/xfer.c | |
| @@ -2290,11 +2290,11 @@ | |
| 2290 | ** autopush following a commit. |
| 2291 | */ |
| 2292 | if( blob_eq(&xfer.aToken[0],"error") && xfer.nToken==2 ){ |
| 2293 | char *zMsg = blob_terminate(&xfer.aToken[1]); |
| 2294 | defossilize(zMsg); |
| 2295 | if( (syncFlags & SYNC_IFABLE)!=0 |
| 2296 | && sqlite3_strlike("%not authorized to write%",zMsg,0)==0 ){ |
| 2297 | autopushFailed = 1; |
| 2298 | nErr++; |
| 2299 | }else if( (syncFlags & SYNC_CLONE)==0 || nCycle>0 ){ |
| 2300 | fossil_force_newline(); |
| 2301 |