[Thread Prev][Thread Next][Thread Index]

[PilotMgr] changing the userID?



I seem to get the following condition ever so often, and I think I know why:

   if ($userInfo->{"userID"} == 0 && $userInfo->{"lastSyncPC"} == 0)
    {
	# A hard reset has happened.
	#

My userID on my pilot is '0' (this also gets printed out when this condition
gets hit, i.e. username vilhuber and unique-ID 0).

If I use something other than pilotmanager to upload programs (I've gotten
into the habit of using pilot-xfer -i *.prc), then the lastSyncPC will also
be '0'.

Since the above is an AND condition, I guess that a userID of '0' is unusual.
Can I change this after the fact? How? Should I? Or is there a bug in the
above line of code somewhere, i.e. couldn't we check the username itself to
see if it still exists as well?

jan
 --
Jan Vilhuber                                            vilhuber@xxxxxxxxx
Cisco Systems, San Jose                                     (408) 527-0847

------------------------------------------------------------------------
***********************************************************
*             This is a public mailing list!              *
* Please do not publish Sun proprietary information here! *
*        -  -  -  -  -  -  -  -  -  -  -  -  -  -         *
* MoreInfo/Unsubscribe @  http://www.moshpit.org/pilotmgr *
***********************************************************


SourceForge.net Logo