Public bug reported:

The current apport hook in debian/source_samba.py uses command_output()
incorrectly to list cifs shares:

report['CIFSMounts'] = command_output(['mount', '|', 'grep', 'cifs'])


command_output() from apport.hookutils doesn't use shell or system(), so the 
above is just passing a literal "|" to mount as a parameter, which fails:

Error: command ['mount', '|', 'grep', 'cifs'] failed with exit code 1:

** Affects: samba (Ubuntu)
     Importance: Low
         Status: New


** Tags: server-next

** Summary changed:

- apport hook uses incorrect syntax to list cifs mounts
+ samba's apport hook uses incorrect syntax to list cifs mounts

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1703604

Title:
  samba's apport hook uses incorrect syntax to list cifs mounts

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1703604/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to