[Pkg-samba-maint] [Git][samba-team/samba][master] Read smb.conf until [print$] section instead of [cdrom] to preserve…

Mathieu Parent gitlab at salsa.debian.org
Tue Apr 17 21:10:57 BST 2018


Mathieu Parent pushed to branch master at Debian Samba Team / samba


Commits:
3ce07998 by Mathieu Parent at 2018-04-17T22:09:32+02:00
Read smb.conf until [print$] section instead of [cdrom] to preserve locally-defined shares (Closes: #776259)

- - - - -


1 changed file:

- debian/samba-common.postinst


Changes:

=====================================
debian/samba-common.postinst
=====================================
--- a/debian/samba-common.postinst
+++ b/debian/samba-common.postinst
@@ -83,7 +83,7 @@ cp /usr/share/samba/smb.conf "$NEWFILE"
 configure_smb_conf "$NEWFILE"
 
 if [ -e "$CONFIG" ]; then
-	sed -e '1,/^[;#[:space:]]*\[cdrom\]/ { d }
+	sed -e '1,/^[;#[:space:]]*\[print\$\]/ { d }
 		1,/^[[:space:]]*\[/ { /^[^[]/d; /^$/d }
 	' "$CONFIG" >> "$NEWFILE"
 fi



View it on GitLab: https://salsa.debian.org/samba-team/samba/commit/3ce079982b09ad189ffcc22ec27e0964bc7f467a

---
View it on GitLab: https://salsa.debian.org/samba-team/samba/commit/3ce079982b09ad189ffcc22ec27e0964bc7f467a
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-samba-maint/attachments/20180417/d443bd21/attachment.html>


More information about the Pkg-samba-maint mailing list