Mattias, After chmod a-r grep will display unpleasant permission denied error for non root user
so it's better just do: if id | grep -q 'uid=0(' then Do root staff else Do non-root staff fi -Dmitry On 2015-01-19 16:24, Mattias Tobiasson wrote: > Hi, > Could I please have a review of this test bug fix. > > Test expects some files to be unreadable. That does not work when > running as root. > The fix is to ignore the parts for unreadable files when running as root. > > bug: https://bugs.openjdk.java.net/browse/JDK-8044419 > webrev: http://cr.openjdk.java.net/~miauno/8044419/webrev.01 > > Tested as non-root on all platforms except embedded. > Tested as root on linux. > > Thanks, > Mattias > -- Dmitry Samersoff Oracle Java development team, Saint Petersburg, Russia * I would love to change the world, but they won't give me the sources.