{"id":529,"date":"2011-04-22T12:15:10","date_gmt":"2011-04-22T11:15:10","guid":{"rendered":"http:\/\/kudzia.eu\/b\/?p=529"},"modified":"2011-05-02T08:11:17","modified_gmt":"2011-05-02T07:11:17","slug":"lenny-to-squeeze-upgrade-aftermath","status":"publish","type":"post","link":"https:\/\/kudzia.eu\/b\/2011\/04\/lenny-to-squeeze-upgrade-aftermath\/","title":{"rendered":"lenny to squeeze upgrade &#8211; aftermath"},"content":{"rendered":"<p>few problems\/differences i&#8217;ve noticed after upgrade of debian.<br \/>\n<!--more--><\/p>\n<h3>bash vs dash<\/h3>\n<p>by default new debian symlinks \/bin\/sh to dash shell instead of bash as in lenny. in turn some of my [lousy] scripts broke. few examples:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n#!\/bin\/sh\r\ncat &gt; b &lt;&lt;&lt;&quot;\r\na\r\nb\r\nc&quot;\r\n<\/pre>\n<p>when \/bin\/sh points to bash just works, when it&#8217;s dash:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\/a: 2: Syntax error: redirection unexpected\r\n<\/pre>\n<p>other example:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n#!\/bin\/sh\r\ncounter='a'\r\nif &#x5B; $counter == &quot;tsearch&quot; ] || &#x5B; $counter ==  &quot;dsearch&quot; ] ; then\r\n        echo 'x'\r\nfi\r\n<\/pre>\n<p>will work fine with bash, but under dash will result with:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&#x5B;: 6: a: unexpected operator\r\n&#x5B;: 6: a: unexpected operator\r\n<\/pre>\n<p>solution? write better code or change shebang to point to \/bin\/bash<\/p>\n<p><a href=\"http:\/\/princessleia.com\/plug\/2008-JP_bash_vs_dash.pdf \">list of other problems that might occur<\/a><\/p>\n<h3>suhosin.get.max_value_length defaults to 512<\/h3>\n<p>which means that any values passed by GET and longer than 512 chars will not be passed to $_REQUEST and $_GET vars.<br \/>\nit seems that in lenny there was no such limitation at all.<\/p>\n<p><a href=\"http:\/\/forums.kayako.com\/threads\/suhosin-alert-configured-get-variable-value-length-limit-exceeded-dropped.24260\/\">someone else noticed this problem too<\/a><\/p>\n<p>solution &#8211; start using post or increase the limit.<\/p>\n<h3>mysql login truncation<\/h3>\n<p>this is actually related to upgrade from mysql 5.0 to mysql 5.1.<br \/>\ndescription can be found <a href=\"http:\/\/www.modmysite.com\/security-server-administration\/10514.htm\">here<\/a>.<\/p>\n<p>solution &#8211; reconfigure application that talks to mysql to use truncated login.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>few problems\/differences i&#8217;ve noticed after upgrade of debian.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[28],"class_list":["post-529","post","type-post","status-publish","format-standard","hentry","category-tech","tag-debian"],"_links":{"self":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/comments?post=529"}],"version-history":[{"count":11,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/529\/revisions"}],"predecessor-version":[{"id":650,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/posts\/529\/revisions\/650"}],"wp:attachment":[{"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/media?parent=529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/categories?post=529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kudzia.eu\/b\/wp-json\/wp\/v2\/tags?post=529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}