Home
last modified time | relevance | path

Searched full:symlink (Results 1 – 25 of 720) sorted by relevance

12345678910>>...29

/freebsd-src/contrib/capsicum-test/
H A Dopenat.cc160 // /symlink.samedir -> topfile
162 // /symlink.down -> subdir/bottomfile
164 // /symlink.absolute_out -> /etc/passwd
166 // /symlink.relative_in -> ../../tmp/cap_topdir/topfile
168 // /symlink.relative_out -> ../../etc/passwd
172 // /subdir/symlink.absolute_in -> /tmp/cap_topdir/topfile
173 // /subdir/symlink.up -> ../topfile
204 EXPECT_OK(symlink("topfile", TmpFile(TOPDIR "/symlink.samedir"))); in OpenatTest()
205 EXPECT_OK(symlink("subdir/bottomfile", TmpFile(TOPDIR "/symlink.down"))); in OpenatTest()
206 EXPECT_OK(symlink(TmpFile(TOPDIR "/topfile"), TmpFile(SUBDIR "/symlink.absolute_in"))); in OpenatTest()
[all …]
/freebsd-src/contrib/libarchive/tar/test/
H A Dtest_symlink_dir.c47 /* "dir" is a symlink to an existing "dest1/real_dir" */ in DEFINE_TEST()
51 /* "dir2" is a symlink to a non-existing "real_dir2" */ in DEFINE_TEST()
56 /* "dir3" is a symlink to an existing "non_dir3" */ in DEFINE_TEST()
60 /* "file" is a symlink to existing "real_file" */ in DEFINE_TEST()
64 /* "file2" is a symlink to non-existing "real_file2" */ in DEFINE_TEST()
69 /* dest1/dir symlink should be replaced */ in DEFINE_TEST()
70 failure("symlink to dir was followed when it shouldn't be"); in DEFINE_TEST()
72 /* dest1/dir2 symlink should be replaced */ in DEFINE_TEST()
73 failure("Broken symlink wasn't replaced with dir"); in DEFINE_TEST()
75 /* dest1/dir3 symlink shoul in DEFINE_TEST()
[all...]
H A Dtest_option_s.c20 assertMakeSymlink("in/d1/symlink", "realfile", 0);
101 assertFileContents("realfile", 8, "test6a/in/d2/symlink"); in DEFINE_TEST()
102 assertIsSymlink("test6a/in/d2/symlink", "realfile", 0); in DEFINE_TEST()
108 assertFileContents("realfile", 8, "test6b/in/d2/symlink"); in DEFINE_TEST()
109 assertIsSymlink("test6b/in/d2/symlink", "realfile", 0); in DEFINE_TEST()
113 * Test 7: selective renaming of symlink target in DEFINE_TEST()
121 assertFileContents("realfile", 8, "test7a/in/d1/symlink"); in DEFINE_TEST()
122 assertIsSymlink("test7a/in/d1/symlink", "realfile-renamed", 0); in DEFINE_TEST()
128 assertFileContents("realfile", 8, "test7b/in/d1/symlink"); in DEFINE_TEST()
129 assertIsSymlink("test7b/in/d1/symlink", "realfil in DEFINE_TEST()
[all...]
/freebsd-src/contrib/pjdfstest/tests/symlink/
H A D09.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/symlink/09.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="symlink returns EPERM if the parent directory of the file named by name2 has its immutable fl…
28 expect 0 symlink test ${n0}/${n1}
32 expect EPERM symlink test ${n0}/${n1}
34 expect 0 symlink test ${n0}/${n1}
38 expect 0 symlink test ${n0}/${n1}
43 expect 0 symlink test ${n0}/${n1}
50 expect EPERM symlink test ${n0}/${n1}
52 expect 0 symlink test ${n0}/${n1}
56 expect 0 symlink test ${n0}/${n1}
[all …]
H A D12.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/symlink/12.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="symlink returns EFAULT if one of the pathnames specified is outside the process's allocated a…
14 expect EFAULT symlink NULL ${n0}
15 expect EFAULT symlink DEADCODE ${n0}
16 expect EFAULT symlink test NULL
17 expect EFAULT symlink test DEADCODE
18 expect EFAULT symlink NULL DEADCODE
19 expect EFAULT symlink DEADCODE NULL
H A D07.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/symlink/07.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="symlink returns ELOOP if too many symbolic links were encountered in translating the name2 pa…
15 expect 0 symlink ${n0} ${n1}
16 expect 0 symlink ${n1} ${n0}
17 expect ELOOP symlink test ${n0}/test
18 expect ELOOP symlink test ${n1}/test
H A D02.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/symlink/02.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="symlink returns ENAMETOOLONG if a component of the name2 pathname exceeded {NAME_MAX} charact…
16 expect 0 symlink ${nx} ${n0}
18 expect 0 symlink ${n0} ${nx}
21 expect ENAMETOOLONG symlink ${n0} ${nxx}
22 expect 0 symlink ${nxx} ${n0}
H A D03.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/symlink/03.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="symlink returns ENAMETOOLONG if an entire length of either path name exceeded {PATH_MAX} char…
17 expect 0 symlink ${nx} ${n0}
19 expect 0 symlink ${n0} ${nx}
21 expect ENAMETOOLONG symlink ${n0} ${nxx}
22 expect ENAMETOOLONG symlink ${nxx} ${n0}
H A D06.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/symlink/06.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="symlink returns EACCES if the parent directory of the file to be created denies write permiss…
23 expect 0 -u 65534 -g 65534 symlink test ${n1}/${n2}
27 expect EACCES -u 65534 -g 65534 symlink test ${n1}/${n2}
29 expect 0 -u 65534 -g 65534 symlink test ${n1}/${n2}
H A D05.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/symlink/05.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="symlink returns EACCES when a component of the name2 path prefix denies search permission"
23 expect 0 -u 65534 -g 65534 symlink test ${n1}/${n2}
27 expect EACCES -u 65534 -g 65534 symlink test ${n1}/${n2}
29 expect 0 -u 65534 -g 65534 symlink test ${n1}/${n2}
H A D00.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/symlink/00.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="symlink creates symbolic links"
17 expect 0 symlink ${n0} ${n1}
18 expect symlink lstat ${n1} type
27 expect 0 symlink test ${n0}/${n1}
H A D10.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/symlink/10.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="symlink returns EROFS if the file name2 would reside on a read-only file system"
23 expect 0 symlink test ${n0}/${n1}
26 expect EROFS symlink test ${n0}/${n1}
28 expect 0 symlink test ${n0}/${n1}
/freebsd-src/lib/libc/stdlib/
H A Drealpath.c48 * Find the real name of path, by removing all ".", ".." and symlink
60 char left[PATH_MAX], next_token[PATH_MAX], symlink[PATH_MAX]; in realpath1()
148 slen = readlink(resolved, symlink, sizeof(symlink)); in realpath1()
155 if ((size_t)slen >= sizeof(symlink)) { in realpath1()
159 symlink[slen] = '\0'; in realpath1()
160 if (symlink[0] == '/') { in realpath1()
172 * append them to symlink. The result is placed in realpath1()
176 if (symlink[slen - 1] != '/') { in realpath1()
177 if ((size_t)slen + 1 >= sizeof(symlink)) { in realpath1()
59 char left[PATH_MAX], next_token[PATH_MAX], symlink[PATH_MAX]; realpath1() local
[all...]
/freebsd-src/crypto/openssh/
H A Dsftp-realpath.c53 * Find the real name of path, by removing all ".", ".." and symlink
65 char left[PATH_MAX], next_token[PATH_MAX], symlink[PATH_MAX]; in sftp_realpath() local
173 slen = readlink(resolved, symlink, sizeof(symlink) - 1); in sftp_realpath()
176 symlink[slen] = '\0'; in sftp_realpath()
177 if (symlink[0] == '/') { in sftp_realpath()
190 * append them to symlink. The result is placed in sftp_realpath()
194 if (symlink[slen - 1] != '/') { in sftp_realpath()
196 (ptrdiff_t)sizeof(symlink)) { in sftp_realpath()
200 symlink[slen] = '/'; in sftp_realpath()
201 symlink[slen + 1] = 0; in sftp_realpath()
[all …]
/freebsd-src/contrib/pjdfstest/tests/chown/
H A D00.t25 for type in regular dir fifo block char socket symlink; do
26 if [ "${type}" != "symlink" ]; then
34 expect 0 symlink ${n0} ${n1}
61 for type in regular dir fifo block char socket symlink; do
62 if [ "${type}" != "symlink" ]; then
72 expect 0 symlink ${n0} ${n1}
111 for type in regular dir fifo block char socket symlink; do
112 if [ "${type}" != "symlink" ]; then
119 expect 0 symlink ${n0} ${n1}
150 for type in regular dir fifo block char socket symlink; do
[all …]
/freebsd-src/contrib/libarchive/cpio/test/
H A Dtest_option_L_upper.c26 skipping("Symlink tests");
32 /* Create a file and a symlink to the file. */
36 /* Symlink to above file. */
37 assertMakeSymlink("symlink", "file", 0);
38 fprintf(filelist, "symlink\n"); in DEFINE_TEST()
47 assertIsSymlink("copy/symlink", NULL, 0); in DEFINE_TEST()
54 assertIsReg("copy-L/symlink", -1); in DEFINE_TEST()
70 assertIsSymlink("unpack/symlink", NULL, 0); in DEFINE_TEST()
85 assertIsReg("unpack-L/symlink", -1); in DEFINE_TEST()
/freebsd-src/sys/contrib/openzfs/udev/rules.d/
H A D69-vdev.rules.in8 KERNEL=="*[!0-9]", ENV{SUBSYSTEM}=="block", ENV{ID_VDEV}=="?*", SYMLINK+="$env{ID_VDEV_PATH}"
9 …-9]", ENV{SUBSYSTEM}=="block", ENV{DEVTYPE}=="disk", ENV{ID_VDEV}=="?*", SYMLINK+="$env{ID_VDEV_PA…
10 KERNEL=="*[0-9]", ENV{SUBSYSTEM}=="block", ENV{DEVTYPE}=="partition", ENV{ID_VDEV}=="?*", SYMLINK+=…
11 KERNEL=="dm-[0-9]*", ENV{SUBSYSTEM}=="block", ENV{ID_VDEV}=="?*", SYMLINK+="$env{ID_VDEV_PATH}"
13 # Enclosure device symlink rules
15 ENV{SUBSYSTEM}=="scsi_generic", ENV{ID_ENCLOSURE}=="?*", SYMLINK+="$env{ID_ENCLOSURE_PATH}"
/freebsd-src/tools/test/stress2/misc/
H A Dsymlink5.sh30 # Variation of symlink.sh using a larger swap backed FS.
47 sed '1,/^EOF/d' < $odir/$0 > symlink.c
48 mycc -o symlink -Wall -Wextra symlink.c || exit 1
49 rm -f symlink.c
67 /tmp/symlink $i &
92 rm -f /tmp/symlink
121 if (symlink("/mnt/not/there", file) == -1) {
123 warn("symlink(%s)", file);
H A Dsymlink.sh45 sed '1,/^EOF/d' < $odir/$0 > symlink.c
46 mycc -o symlink -Wall -Wextra symlink.c || exit 1
47 rm -f symlink.c
64 /tmp/symlink $i &
86 rm -f /tmp/symlink $D
111 if (symlink("/mnt/not/there", file) == -1) {
113 warn("symlink(%s)", file);
/freebsd-src/tests/sys/fs/fusefs/
H A Dsymlink.cc41 class Symlink: public FuseTest { class
96 * A successful symlink should clear the parent directory's attribute cache,
99 TEST_F(Symlink, clear_attr_cache) in TEST_F() argument
125 EXPECT_EQ(0, symlink(dst, FULLPATH)) << strerror(errno); in TEST_F()
129 TEST_F(Symlink, enospc) in TEST_F() argument
149 EXPECT_EQ(-1, symlink(dst, FULLPATH)); in TEST_F()
153 TEST_F(Symlink, ok) in TEST_F() argument
164 EXPECT_EQ(0, symlink(dst, FULLPATH)) << strerror(errno); in TEST_F()
169 * for the newly created symlink. Regression test for bug 263662.
172 TEST_F(Symlink, parent_ino) in TEST_F() argument
[all …]
/freebsd-src/sys/contrib/openzfs/config/
H A Dkernel-symlink.m415 .symlink = tmp_symlink,
32 .symlink = tmp_symlink,
38 AC_MSG_CHECKING([whether iops->symlink() takes struct mnt_idmap*])
42 [iops->symlink() takes struct mnt_idmap*])
46 AC_MSG_CHECKING([whether iops->symlink() takes struct user_namespace*])
50 [iops->symlink() takes struct user_namespace*])
/freebsd-src/lib/libsys/
H A Dsymlink.232 .Nm symlink ,
40 .Fn symlink "const char *name1" "const char *name2"
60 .Fn symlink
76 .Fn symlink .
78 .Rv -std symlink
161 .Fn symlink ,
190 .Xr symlink 7
197 .Fn symlink
/freebsd-src/contrib/libarchive/libarchive/test/
H A Dtest_write_disk_secure.c61 /* Write a symlink to the dir above. */ in DEFINE_TEST()
85 failure("Extracting a file through a symlink should fail here."); in DEFINE_TEST()
90 /* Write an absolute symlink to /tmp. */ in DEFINE_TEST()
104 failure("Extracting a file through an absolute symlink should fail here."); in DEFINE_TEST()
121 * With symlink check and unlink option, it should remove in DEFINE_TEST()
132 /* Create a nested symlink. */ in DEFINE_TEST()
146 failure("Extracting a file through a symlink should fail here."); in DEFINE_TEST()
155 /* Create a symlink to a dir. */ in DEFINE_TEST()
163 /* Extract a dir whose name matches the symlink. */ in DEFINE_TEST()
177 /* Create a symlink to a dir. */ in DEFINE_TEST()
[all …]
/freebsd-src/sys/contrib/device-tree/Bindings/power/supply/
H A Dbq256xx.yaml19 - https://www.ti.com/lit/ds/symlink/bq25600.pdf
20 - https://www.ti.com/lit/ds/symlink/bq25601.pdf
21 - https://www.ti.com/lit/ds/symlink/bq25600d.pdf
22 - https://www.ti.com/lit/ds/symlink/bq25601d.pdf
23 - https://www.ti.com/lit/ds/symlink/bq25611d.pdf
24 - https://www.ti.com/lit/ds/symlink/bq25618.pdf
25 - https://www.ti.com/lit/ds/symlink/bq25619.pdf
/freebsd-src/tools/regression/tmpfs/
H A Dt_symlink36 # Verifies that the symlink and readlink operations work.
44 test_name "Creation of a symlink pointing to it"
46 test_name "Symlink points to correct file"
51 test_name "Symlink reflects the changes"
54 test_name "Creation of symlink to a known system file"
71 test_name "Creating a symlink raises NOTE_WRITE on the parent" \

12345678910>>...29