<p>Oh, I think your initial sentence should have read like this:</p>

<p>Doesn't this patch prevent <code>~/.my.cnf</code> from getting loaded if the items in /etc <strong>DO</strong> exist?</p>

<p>So with this fix the order in which things get searched seems to be as follows: </p>

<p><code>/etc/mysql/.cnf</code><br><code>/etc/my.cnf</code><br><code>/root/mysql.cnf</code></p>

<p>So in my initial comment it seems to have found <code>/etc/my.cnf</code> and maybe stopped checking for <code>/root/mysql.cnf</code> existence. I could have just not posted that part of the strace output though after the first <code>my.cnf</code> was found.</p>

<p>Does that make sense?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1199#issuecomment-38800041'>Reply to this email on GitHub</a>.<img src='https://github.com/notifications/beacon/5514713__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcxMTU0NTA0NSwiZGF0YSI6eyJpZCI6MTc5MjMwNjl9fQ==--a091c5911ad3adc4a5524484febd0726d03c8433.gif' height='1' width='1'></p>