Your message dated Mon, 17 Aug 2015 16:19:10 +0000 with message-id <[email protected]> and subject line Bug#794727: fixed in base-files 9.3 has caused the Debian Bug report #794727, regarding mesg command in stretch makes default /root/.profile to fail to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 794727: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=794727 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: base-files Version: 9.2 Severity: normal Tags: patch In testing /usr/bin/mesg is provided by util-linux instead of sysvinit-utils. Its changed behaviour with respect to exit codes needs to be accounted for in /usr/share/base-files/dot.profile. When displaying of messages is set to no and also when being set to no, util-linux' mesg exits 0 but 1. Since "mesg n" is the last command being run for root's login-shells, the first exit code the user "sees" is 1 - which is plain wrong. Another example is ssh'ing into a stretch machine with e.g. "bash -lex somecommand" where "somecommand" will never be executed due to the error-exit triggered by the "failed" invocation of mesg. A possible workaround is to change "mesg n" to s.th. along the lines of -------8<------------ ( mesg n err=$? [ $err -gt 1 ] && exit $err : ) -------8<------------ This way, mesg's exit 1 gets masked by the empty statement ":" which returns zero. If the mesg call fails with, say 127 becaus the binary is missing, exit 127 gets triggered which exits the sub-shell - and only the sub-shell, not the login shell - and the empty statement ":" which would return zero gets skipped and code 127 gets propagated to the login shell. Daniel -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (990, 'testing'), (500, 'testing-proposed-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.0.0-2-amd64 (SMP w/6 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Init: sysvinit (via /sbin/init) Versions of packages base-files depends on: ii gawk [awk] 1:4.1.1+dfsg-1 ii mawk [awk] 1.3.3-17 base-files recommends no packages. base-files suggests no packages. -- no debconf information
--- End Message ---
--- Begin Message ---Source: base-files Source-Version: 9.3 We believe that the bug you reported is fixed in the latest version of base-files, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Santiago Vila <[email protected]> (supplier of updated base-files package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Mon, 17 Aug 2015 17:50:38 +0200 Source: base-files Binary: base-files Architecture: source amd64 Version: 9.3 Distribution: unstable Urgency: medium Maintainer: Santiago Vila <[email protected]> Changed-By: Santiago Vila <[email protected]> Description: base-files - Debian base system miscellaneous files Closes: 794727 Changes: base-files (9.3) unstable; urgency=medium . * Change /usr/share/base-files/dot.profile (the default /root/.profile) to not fail with new mesg behaviour in stretch. Closes: #794727. * Add extra code in postinst so that people who never modified their /root/.profile from jessie get the fixed version. This is done by the update_to_current_default() function, which is now more general and allows updating files not in /etc. * While we are at it, modify install_from_default() function so that it's called in the same simplified way as update_to_current_default(). Checksums-Sha1: 40ffb588b7c0791fd25fd7bf6979707929d40738 1020 base-files_9.3.dsc 1c0385b15008c584ff5dc4701c4aecc749e65a31 53588 base-files_9.3.tar.xz 02bca48f83edc71f3a9ecc946977cbe922f4ed72 78184 base-files_9.3_amd64.deb Checksums-Sha256: aa86f4dd5cf8711494eb3976da28fcc805fafdcb96e1e8c5890b70657c2515b6 1020 base-files_9.3.dsc 5c8cf0fcf44d5aff163346184db1e2df6daccaafb67ce2d348b0db070d1a388b 53588 base-files_9.3.tar.xz 7a03be5b4aeb0c02aab69e0775bea8b22a0f8d3ea4714fb0331c5f094a1d70ba 78184 base-files_9.3_amd64.deb Files: 8b2b23da22a4adbb81dbd71921bee880 1020 admin required base-files_9.3.dsc 4dbb51cf8c34e041d337b451806a36af 53588 admin required base-files_9.3.tar.xz 2fcf57a645d68691823036c900b81639 78184 admin required base-files_9.3_amd64.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBCAAGBQJV0gVcAAoJEEHOfwufG4syBSoH/RyajLtdqCWsacPYeyZeqFdS t0moon03773oYnwHuwIcpnM5c3+kAFwI2fAqIcLX/7i8XrIejS2wCfOuXTuJsyRP RYaZHkKBzY3p9I5ZMW3oE7wE3E6h10SwhhuHO8wR85RA+HnXzVe7mvNRaLkPwbhh 6VuRMh3sQYIvwgzL80M5DYpke0HKEO4DGBmD27eTxXG9atPSQD4W7eVkjtKeYAjX sWm7E3P/jUFSN04t0LmmZptERcV3gv13jZrcJBTlrVbIv+z71Gy/rF/ddGAdm1We okVlq+7Bg/Bk4EMWm1l6apnc4Z9mg5H1+1alNyAE0vmbd+RpqelvupTznLIMcqc= =q9Yu -----END PGP SIGNATURE-----
--- End Message ---

