[PATCH v1] tests: add fchmodat.test

Dmitry V. Levin ldv at altlinux.org
Sat Mar 12 02:32:32 UTC 2016


On Thu, Mar 10, 2016 at 10:45:01PM +0530, Anchit Jain wrote:
[...]
> +		if (syscall(__NR_fchmodat, AT_FDCWD, fname, 0600) != -1)
> +			perror_msg_and_fail("fchmod");
[...]
> +			printf("chmod(\"%s\", 0600) = -1 ENOSYS (%m)\n", fname);
[...]
> +			perror_msg_and_fail("chmod");

All these cited lines are buggy.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160312/0867882b/attachment.bin>


More information about the Strace-devel mailing list