1. 21 10月, 2020 1 次提交
  2. 18 10月, 2020 2 次提交
  3. 17 10月, 2020 1 次提交
    • D
      Define `fs::hard_link` to not follow symlinks. · 91a9f83d
      Dan Gohman 提交于
      POSIX leaves it implementation-defined whether `link` follows symlinks.
      In practice, for example, on Linux it does not and on FreeBSD it does.
      So, switch to `linkat`, so that we can pick a behavior rather than
      depending on OS defaults.
      
      Pick the option to not follow symlinks. This is somewhat arbitrary, but
      seems the less surprising choice because hard linking is a very
      low-level feature which requires the source and destination to be on
      the same mounted filesystem, and following a symbolic link could end
      up in a different mounted filesystem.
      91a9f83d
  4. 16 10月, 2020 36 次提交