Jilles Tjoelker
310c8f3c99
realpath(): Properly fail "." or ".." components after non-directories.
...
If realpath() is called on pathnames like "/dev/null/." or "/dev/null/..",
it should fail with [ENOTDIR]. Pathnames like "/dev/null/" already failed as
they should.
Also, put the check for non-directories after lstatting the previous
component instead of when the empty component (consecutive or trailing
slashes) is detected, saving an lstat() call and some lines of code.
PR: kern/82980
MFC after: 2 weeks
2014-04-13 19:48:28 +00:00
..
2014-03-04 02:19:39 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2012-07-26 12:04:11 +00:00
2014-04-02 16:07:48 +00:00
2014-04-05 08:17:48 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2014-04-02 16:07:48 +00:00
2013-05-28 20:57:40 +00:00
2014-04-02 16:07:48 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2013-07-17 08:45:27 +00:00
2013-12-13 21:50:03 +00:00
2012-06-11 22:25:20 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2013-05-28 20:57:40 +00:00
2014-01-14 01:52:34 +00:00
2014-04-02 16:07:48 +00:00
2014-04-05 08:17:48 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-04-21 10:30:19 +00:00
2014-04-02 16:07:48 +00:00
2013-06-13 00:19:30 +00:00
2014-04-02 16:07:48 +00:00
2014-04-02 16:07:48 +00:00
2012-09-12 17:54:09 +00:00
2012-09-12 17:54:09 +00:00
2014-04-05 08:17:48 +00:00
2014-04-02 16:07:48 +00:00
2013-06-13 00:19:30 +00:00
2012-07-26 12:04:11 +00:00
2011-12-15 11:16:41 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-07-04 12:35:39 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2012-04-17 07:22:14 +00:00
2013-06-13 00:19:30 +00:00
2014-04-13 19:48:28 +00:00
2012-06-26 05:34:31 +00:00
2011-11-20 14:45:42 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-08-18 10:33:46 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2013-06-13 00:19:30 +00:00
2014-04-03 08:16:45 +00:00
2013-06-13 00:19:30 +00:00
2013-09-01 19:59:54 +00:00