[Bug 312449] Re: samba-common fails to upgrade if smb.conf is deleted

Thierry Carrez thierry.carrez at ubuntu.com
Mon Mar 2 16:46:02 GMT 2009


Yes, the following in samba-common.postinst:
  ucf --three-way --debconf-ok "$NEWFILE" "$CONFIG"
  ucfr samba-common "$CONFIG"
  chmod a+r "$CONFIG"
results in:
  Not replacing deleted config file /etc/samba/smb.conf
  chmod: cannot access `/etc/samba/smb.conf': No such file or directory

If the file is deleted, it should probably reinstall a pristine version,
rather than just "Not replacing" it and letting chmod fail :)

It's still something that shouldn't happen (/etc conffiles should be
removed by purge, not manually) but given the number of updates that
fail for this reason a more graceful handling of this corner case is
definitely wanted.


** Changed in: samba (Ubuntu)
   Importance: Undecided => Medium
       Status: New => Confirmed

-- 
samba-common fails to upgrade if smb.conf is deleted
https://bugs.launchpad.net/bugs/312449
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in ubuntu.



More information about the Ubuntu-server-bugs mailing list