Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for symlinks (0.11 seconds)

  1. guava-tests/test/com/google/common/io/MoreFilesTest.java

        try (FileSystem fs = newTestFileSystem(SECURE_DIRECTORY_STREAM)) {
          Path symlink = fs.getPath("/symlinktodir");
          Path dir = fs.getPath("dir");
    
          assertEquals(6, MoreFiles.listFiles(symlink).size());
    
          MoreFiles.deleteDirectoryContents(symlink);
    
          assertTrue(Files.exists(symlink, NOFOLLOW_LINKS));
          assertTrue(Files.exists(symlink));
          assertTrue(Files.exists(dir));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 27.5K bytes
    - Click Count (0)
  2. gradlew

    #
    ##############################################################################
    
    # Attempt to set APP_HOME
    
    # Resolve links: $0 may be a link
    app_path=$0
    
    # Need this for daisy-chained symlinks.
    while
        APP_HOME=${app_path%"${app_path##*/}"}  # leaves a trailing /; empty if no leading path
        [ -h "$app_path" ]
    do
        ls=$( ls -ld "$app_path" )
        link=${ls#*' -> '}
        case $link in             #(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Mar 20 08:59:10 GMT 2026
    - 8.5K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/io/MoreFilesTest.java

        try (FileSystem fs = newTestFileSystem(SECURE_DIRECTORY_STREAM)) {
          Path symlink = fs.getPath("/symlinktodir");
          Path dir = fs.getPath("dir");
    
          assertEquals(6, MoreFiles.listFiles(symlink).size());
    
          MoreFiles.deleteDirectoryContents(symlink);
    
          assertTrue(Files.exists(symlink, NOFOLLOW_LINKS));
          assertTrue(Files.exists(symlink));
          assertTrue(Files.exists(dir));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 26.6K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/reflect/ClassPathTest.java

                      .scanResources())
              .hasSize(1);
        } finally {
          jarFile.delete();
        }
      }
    
      @AndroidIncompatible // Path (for symlink creation)
    
      public void testScanDirectory_symlinkCycle() throws IOException {
        if (isWindows()) {
          return; // TODO: b/136041958 - Can we detect cycles under Windows?
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 25.8K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/job/IndexExportJobTest.java

            assertNotNull(result);
            assertTrue(result.normalize().startsWith(tempDir.normalize()), "Path must stay within base directory: " + result);
        }
    
        // --- symlink traversal prevention tests ---
    
        @Test
        public void test_exportDocument_symlinkIntermediateDir() throws Exception {
            final Path outsideDir = Files.createTempDirectory("outside");
            try {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 09:08:38 GMT 2026
    - 66.1K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/job/IndexExportJob.java

                Files.createDirectories(filePath.getParent());
                final Path realParent = filePath.getParent().toRealPath();
                if (!realParent.startsWith(realBase)) {
                    logger.warn("Symlink traversal detected: url={}, realParent={}, realBase={}", url, realParent, realBase);
                    return;
                }
                final byte[] bytes = content.getBytes(StandardCharsets.UTF_8);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  7. CHANGELOG/CHANGELOG-1.33.md

    - Fixed a test failure in `TestSetVolumeOwnershipOwner` for `fsGroup=3000` and
      symlink cases in `volume_linux_test.go`. The tests were failing due to invalid
      ownership verification and the issue has been resolved by adjusting file
    Created: Fri Apr 03 09:05:14 GMT 2026
    - Last Modified: Thu Mar 19 03:17:58 GMT 2026
    - 369K bytes
    - Click Count (0)
Back to Top