David Howells
1e2f82d1e9
statx: Kill fd-with-NULL-path support in favour of AT_EMPTY_PATH
...
With the new statx() syscall, the following both allow the attributes of
the file attached to a file descriptor to be retrieved:
statx(dfd, NULL, 0, ...);
and:
statx(dfd, "", AT_EMPTY_PATH, ...);
Change the code to reject the first option, though this means copying
the path and engaging pathwalk for the fstat() equivalent. dfd can be a
non-directory provided path is "".
[ The timing of this isn't wonderful, but applying this now before we
have statx() in any released kernel, before anybody starts using the
NULL special case. - Linus ]
Fixes: a528d35e8bfc ("statx: Add a system call to make enhanced file info available")
Reported-by: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Eric Sandeen <sandeen@sandeen.net>
cc: fstests@vger.kernel.org
cc: linux-api@vger.kernel.org
cc: linux-man@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-04-26 15:05:47 -07:00
..
2017-03-03 21:44:35 -08:00
2017-03-02 08:42:31 +01:00
2017-03-16 16:29:30 +00:00
2017-03-02 08:42:31 +01:00
2017-03-02 08:42:31 +01:00
2016-12-24 11:46:01 -08:00
2017-04-14 16:53:45 -07:00
2017-03-02 08:42:31 +01:00
2017-03-03 11:38:56 -08:00
2017-04-17 15:44:23 -05:00
2017-03-03 11:38:56 -08:00
2016-12-24 11:46:01 -08:00
2017-03-25 15:36:56 -07:00
2017-02-23 20:33:51 -08:00
2017-03-09 18:23:27 -08:00
2017-03-03 11:38:56 -08:00
2016-12-24 11:46:01 -08:00
2017-01-14 11:37:18 +01:00
2017-03-03 11:38:56 -08:00
2017-03-02 08:42:31 +01:00
2017-04-03 01:06:00 -04:00
2017-03-20 10:00:18 -04:00
2017-03-09 17:01:10 -08:00
2017-03-02 10:09:00 +11:00
2017-03-03 12:14:13 -08:00
2017-03-15 10:06:07 -04:00
2017-03-03 21:44:35 -08:00
2017-03-02 08:42:31 +01:00
2016-12-09 16:45:04 +01:00
2017-03-02 08:42:32 +01:00
2017-04-13 18:24:21 -07:00
2017-03-02 08:42:31 +01:00
2017-03-15 15:08:48 -04:00
2017-03-02 08:42:32 +01:00
2017-02-27 18:43:46 -08:00
2017-03-17 10:25:59 +09:00
2017-03-02 08:42:29 +01:00
2017-03-02 20:51:15 -05:00
2017-03-03 10:16:38 -08:00
2017-03-31 12:29:03 -07:00
2016-11-18 10:59:15 -05:00
2017-04-13 11:18:56 -04:00
2017-03-02 08:42:32 +01:00
2017-03-02 08:42:32 +01:00
2017-03-02 08:42:32 +01:00
2017-03-09 18:23:27 -08:00
2017-03-02 08:42:31 +01:00
2016-12-24 11:46:01 -08:00
2017-04-15 09:39:31 -07:00
2017-03-08 10:42:13 -08:00
2017-04-13 18:24:21 -07:00
2017-02-24 17:46:57 -08:00
2017-03-02 08:42:31 +01:00
2016-12-24 11:46:01 -08:00
2017-02-27 18:43:46 -08:00
2017-01-24 16:26:14 -08:00
2017-02-24 17:46:57 -08:00
2017-04-08 17:33:32 +02:00
2017-03-02 20:51:15 -05:00
2017-04-18 23:18:02 +02:00
2017-03-02 20:51:15 -05:00
2016-12-24 11:46:01 -08:00
2017-04-09 08:26:21 -07:00
2017-03-03 10:16:38 -08:00
2016-12-24 11:46:01 -08:00
2017-03-02 08:42:29 +01:00
2017-03-02 20:51:15 -05:00
2017-03-02 08:42:36 +01:00
2017-03-02 08:42:39 +01:00
2017-03-02 08:42:39 +01:00
2017-03-02 08:42:36 +01:00
2017-03-02 08:42:37 +01:00
2017-03-02 08:56:59 -07:00
2017-03-02 08:42:37 +01:00
2017-02-01 09:13:51 +01:00
2016-12-24 11:46:01 -08:00
2017-03-02 08:42:31 +01:00
2017-03-02 08:42:36 +01:00
2017-04-08 00:47:49 -07:00
2017-01-10 13:34:43 +13:00
2016-12-24 11:46:01 -08:00
2017-02-27 18:43:46 -08:00
2017-03-02 08:42:32 +01:00
2017-03-02 08:42:32 +01:00
2017-03-02 08:42:35 +01:00
2017-03-02 08:42:35 +01:00
2016-12-24 11:46:01 -08:00
2017-03-02 08:42:31 +01:00
2017-03-02 08:42:29 +01:00
2016-12-24 11:46:01 -08:00
2017-03-02 08:42:35 +01:00
2017-03-13 08:27:34 -06:00
2017-01-30 16:32:25 -08:00
2017-03-02 08:42:37 +01:00
2017-03-06 09:50:01 -08:00
2017-01-24 16:26:14 -08:00
2016-10-24 08:12:35 -02:00
2017-03-03 11:38:56 -08:00
2016-12-24 11:46:01 -08:00
2016-12-14 23:48:11 -05:00
2016-12-03 15:55:01 -05:00
2017-02-04 00:01:06 +13:00
2017-02-27 18:43:46 -08:00
2017-04-15 09:34:52 -07:00
2017-03-02 08:42:38 +01:00
2017-04-19 15:56:24 -07:00
2017-02-07 15:05:04 +01:00
2016-12-24 11:46:01 -08:00
2017-02-04 00:01:06 +13:00
2017-02-04 00:01:06 +13:00
2017-03-02 08:42:31 +01:00
2017-03-02 08:42:38 +01:00
2017-03-03 10:16:38 -08:00
2016-12-24 11:46:01 -08:00
2017-03-02 08:42:29 +01:00
2016-12-24 11:46:01 -08:00
2017-03-03 10:16:38 -08:00
2017-04-26 15:05:47 -07:00
2016-12-05 19:03:49 -05:00
2017-02-23 20:33:51 -08:00
2017-02-20 16:51:23 +01:00
2017-03-01 12:53:44 +01:00
2017-04-08 00:47:48 -07:00
2016-12-24 11:46:01 -08:00
2016-12-24 11:46:01 -08:00