D | chdir01.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 30 static char *workdir; variable 38 {FILE_NAME, -1, ENOTDIR, -1, ENOTDIR}, 39 {BLOCKED_NAME, 0, 0, -1, EACCES}, 44 {"missing", -1, ENOENT, -1, ENOENT}, 45 {LINK_NAME1, -1, ELOOP, -1, ELOOP}, 56 SAFE_MOUNT(tst_device->dev, MNTPOINT, tst_device->fs_type, 0, NULL); in setup() 59 workdir = SAFE_MALLOC(strlen(cwd) + strlen(MNTPOINT) + 2); in setup() 60 sprintf(workdir, "%s/%s", cwd, MNTPOINT); in setup() 62 SAFE_CHDIR(workdir); in setup() [all …]
|