Hello,

It would seem there is a bug in update_cmd(). Cloning, syncing and other
operations  will  call  user_select()  to setup  g.userUid  among  other
things.  This does  not happen  with  update_cmd() so  when I'm  viewing
/info/artifact through  the web  UI, it  shows ``unknown  @ IP''  as the
Received from.  On the  other hand,  if I sync,  it shows  ``localuser @
IP''.

I believe this  is a bug but I'm  not sure where the best  place for the
fix is. Here's a proposed fix:

Index: src/update.c
==================================================================
--- src/update.c
+++ src/update.c
@@ -128,10 +128,11 @@
   db_must_be_within_tree();
   vid = db_lget_int("checkout", 0);
   if( vid==0 ){
     fossil_fatal("cannot find current version");
   }
+  user_select();
   if( !dryRunFlag && !internalUpdate ){
     autosync(SYNC_PULL + SYNC_VERBOSE*verboseFlag);
   }
   
   /* Create any empty directories now, as well as after the update,

Andy
-- 
TAI64 timestamp: 40000000522c1419


_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to