Bionic verification                                                             
                                                                                
Current version:                                                                
$ apt-cache policy base-files                                                   
base-files:                                                                     
  Installed: 10.1ubuntu2.9                                                      
  Candidate: 10.1ubuntu2.9                                                      
  Version table:                                                                
 *** 10.1ubuntu2.9 500                                                          
        500 http://br.archive.ubuntu.com/ubuntu bionic-updates/main amd64 
Packages
        100 /var/lib/dpkg/status                                                
                                                                                
Uptime is there:                                                                
ubuntu@bionic-motd-news-no-uptime:~$ grep uptime /etc/update-motd.d/50-motd-news
# Some messages may only be pertinent before or after some amount of uptime     
read up idle < /proc/uptime                                                     
uptime="uptime/$up/$idle"                                                       
USER_AGENT="curl/$curl_ver $lsb $platform $cpu $uptime cloud_id/$cloud_id"      
                                                                                
After updating, it's gone:                                                      
ubuntu@bionic-motd-news-no-uptime:~$ apt-cache policy base-files                
base-files:                                                                     
  Installed: 10.1ubuntu2.10                                                     
  Candidate: 10.1ubuntu2.10                                                     
  Version table:                                                                
 *** 10.1ubuntu2.10 500                                                         
        500 http://br.archive.ubuntu.com/ubuntu bionic-proposed/main amd64 
Packages
        100 /var/lib/dpkg/status                                                
     10.1ubuntu2.9 500                                                          
                                                                                
ubuntu@bionic-motd-news-no-uptime:~$ grep uptime /etc/update-motd.d/50-motd-news
ubuntu@bionic-motd-news-no-uptime:~$                                            
                                                                                
Bionic verification succeeded.

** Tags removed: verification-needed-bionic
** Tags added: verification-done-bionic

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to base-files in Ubuntu.
https://bugs.launchpad.net/bugs/1886572

Title:
  Remove uptime from the motd-news user agent

Status in base-files package in Ubuntu:
  Fix Released
Status in base-files source package in Xenial:
  Fix Committed
Status in base-files source package in Bionic:
  Fix Committed
Status in base-files source package in Focal:
  Fix Committed

Bug description:
  [Impact] 
  The uptime value in the user-agent string sent to the motd-news server is 
unused and not necessary. It should be removed.

  [Test Case]
  Inspect the /etc/update-motd.d/50-motd-news script and verify that uptime is 
no longer used.

  Previous version:
  $ grep uptime /etc/update-motd.d/50-motd-news 
  # Some messages may only be pertinent before or after some amount of uptime
  read up idle < /proc/uptime
  uptime="uptime/$up/$idle"
  USER_AGENT="curl/$curl_ver $lsb $platform $cpu $uptime cloud_id/$cloud_id"

  Updated version:
  $ grep uptime /etc/update-motd.d/50-motd-news
   (no output)

  
  [Regression Potential] 
  The server side, if it were checking this value, could be surprised by this 
change.

  [Other Info]
  N/A

  [Original Description]
  I don't why that was included but it shouldn't be. Please remove it.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/base-files/+bug/1886572/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to