]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstests: fix up fs_perms test used by 126
authorEric Sandeen <sandeen@sandeen.net>
Tue, 9 Feb 2010 17:59:23 +0000 (11:59 -0600)
committerEric Sandeen <sandeen@sandeen.net>
Tue, 9 Feb 2010 17:59:23 +0000 (11:59 -0600)
commit917658170c22b1fb0ced23834ccee6fcb7f5cbf7
treedd73c9f49b940ba853c363e2c185293f9112d47d
parent1728089cc9006f822d4787272596e56fa45948a8
xfstests: fix up fs_perms test used by 126

Test 126 was failing intermittently for Ted & I; it seems that
this is because we were passing an unterminated string to
fopen for the mode; I'm not certain why this made it fail,
but it's pretty clearly not a good thing to do, and fixing
it fixes the test.

Rather than passing around characters, do things string-wise,
since that is what is ultimately used in fopen().

Reported-by: Theodore Tso <tytso@mit.edu>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
src/fs_perms.c