plash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Plash] fchmod not working?


From: Thomas Leonard
Subject: [Plash] fchmod not working?
Date: Sun, 27 Apr 2008 20:24:23 +0100

I installed plash_1.18.svn.2008-04-27-1520-1hardy1_amd64.deb today and
tried the Zero Install unit tests again.

There seem to be some new errors:

$ cd tests
$ ./testunpack.py
testBadExt (__main__.TestUnpackGNU) ... ok
testDeb (__main__.TestUnpackGNU) ... ok
testExtract (__main__.TestUnpackGNU) ... ok
testExtractFails (__main__.TestUnpackGNU) ... ok
testExtractIllegal (__main__.TestUnpackGNU) ... ok
...
testRPM (__main__.TestUnpackGNU) ... /bin/cpio: ./Hello: Cannot change
mode to rw-r--r--: Operation not permitted
testZip (__main__.TestUnpackGNU) ... chmod (file attributes) error:
Operation not permitted

For some reason, unzip and cpio no longer work. Using the
HelloWorld.zip in the 0launch/tests directory:

$ pola-run --log -fw / -e unzip -q -o HelloWorld.zip
[...]
#1: [r.] stat: HelloWorld: ok
#1: [r.] stat: HelloWorld: ok
#1: [r.] stat: HelloWorld/main: ok
#1: [r.] lstat: HelloWorld/main: ok
#1: [r.] stat: HelloWorld/main: ok
#1: [w.] unlink: HelloWorld/main: ok
#1: [w.] open: HelloWorld/main, flags=0o1102, mode=0o666: ok
#1: [w.] utime: HelloWorld/main: ok
chmod (file attributes) error: Operation not permitted
#1 end

Running strace on unzip without pola-run shows:

...
unlink("HelloWorld/main")               = 0
open("HelloWorld/main", O_RDWR|O_CREAT|O_TRUNC, 0666) = 12
write(12, "#!/bin/sh\necho Hello World\n", 27) = 27
fchmod(12, 0100755)                     = 0
close(12)                               = 0
utime("HelloWorld/main", [2008/02/07-19:49:37, 2005/09/17-14:19:23]) = 0
...

Any ideas?


-- 
Dr Thomas Leonard       http://rox.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6 8B9A AE07 8280 59A5 3CC1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]