Searched refs:chdir (Results 1 - 25 of 107) sorted by relevance

12345

/src/usr.bin/make/unit-tests/
H A Dopt-chdir.exp2 make: chdir /nonexistent: No such file or directory
H A Dopt-chdir.mk1 # $NetBSD: opt-chdir.mk,v 1.7 2024/04/02 11:11:00 rillig Exp $
10 all: chdir-root
11 all: chdir-nonexistent
16 chdir-root: .PHONY .IGNORE
22 chdir-nonexistent: .PHONY .IGNORE
/src/etc/rc.d/
H A Drtadvd22 local chdir="$(getent passwd _rtadvd | cut -d: -f6)"
26 [ -z "${chdir}" ] || [ "/${chdir}" = // ] && return 0
51 echo "${name}: copying ${conf} to ${chdir}${conf}"
52 mkdir -p "${chdir}${confdir}"
53 cp "${conf}" "${chdir}${conf}" || return 1
57 mkdir -p "${chdir}/var/run"
60 ln -snf "${chdir}/var/run/${name}.dump" /var/run
/src/regress/sys/kern/getcwd/
H A Dgetcwd.c202 chdir ("/usr/share/examples/emul/ultrix/etc");
246 chdir ("/tmp/permdir/subdir");
253 chdir ("/");
259 chdir ("/tmp/permdir/subdir");
266 chdir ("/");
287 chdir ("/tmp/chrootdir");
307 chdir("subdir");
325 chdir ("/");
339 chdir("/");
356 chdir("/sbi
[all...]
/src/lib/libc/gen/
H A Ddaemon.c69 (void)chdir("/");
/src/sys/sys/
H A Dspawn.h70 #define fae_chdir_path fae_data.chdir.path
71 } chdir; member in union:posix_spawn_file_actions_entry::__anon0e752d2e010a
/src/usr.sbin/rtadvd/
H A Drtadvd_hostops.c28 .op_chdir = chdir,
H A Dprog_ops.h72 #define prog_chdir chdir
/src/libexec/httpd/
H A Dtilde-luzah-bozo.c50 * - chdir's /~user/public_html
101 if (chdir(pw->pw_dir) < 0) {
104 bozo_http_error(httpd, 404, request, "can't chdir to homedir");
107 if (chdir(httpd->public_html) < 0) {
111 "can't chdir to public_html");
/src/games/warp/
H A Dsig.c100 chdir("/usr/tmp");
164 chdir(SAVEDIR);
/src/bin/csh/
H A Ddir.c89 if (chdir(ecp) == -1)
99 if (chdir("/") == -1) {
332 * dochngd - implement chdir command.
346 if (chdir(short2str(cp)) < 0)
356 if (chdir(tmp = short2str(dp->di_name)) < 0)
429 if (chdir(short2str(dp)) >= 0) {
435 if (chdir(short2str(cp)) >= 0)
452 if (chdir(short2str(buf)) >= 0) {
461 if ((dp[0] == '/' || dp[0] == '.') && chdir(short2str(dp)) >= 0) {
493 if (chdir(tm
[all...]
/src/tests/lib/libc/sys/
H A Dt_chroot.c64 ATF_REQUIRE(chdir(buf) == 0);
98 (void)chdir("/");
189 ATF_REQUIRE(chdir(buf) == 0);
221 (void)chdir("/");
/src/libexec/atrun/
H A Datrun.c142 if (chdir(pentry->pw_dir) == -1)
143 (void)chdir("/");
264 if (chdir(_PATH_ATSPOOL) == -1)
265 perr("Cannot chdir to `%s'", _PATH_ATSPOOL);
320 if (chdir(_PATH_ATJOBS) == -1)
321 perr("Cannot chdir to `%s'", _PATH_ATJOBS);
444 if (chdir(_PATH_ATJOBS) == -1)
/src/lib/libpam/modules/pam_chroot/
H A Dpam_chroot.c103 if (chdir(cwd) == -1) {
104 openpam_log(PAM_LOG_ERROR, "chdir(): %s", strerror(errno));
/src/distrib/utils/tls/
H A Dtls.c52 if (chdir(argv[1]))
53 err(1, "chdir `%s'", argv[1]);
/src/games/sail/
H A Dmain.c77 if (chdir(_PATH_SAILDIR) < 0) {
/src/libexec/talkd/
H A Dtalkd.c112 if (chdir(_PATH_DEV) < 0) {
113 syslog(LOG_ERR, "chdir: %s: %m", _PATH_DEV);
/src/usr.bin/env/
H A Denv.c75 if (chdir(optarg) == -1)
76 err(125, "chdir '%s'", optarg);
/src/usr.sbin/chroot/
H A Dchroot.c176 if (chdir(argv[0]) == -1 || chroot(".") == -1)
/src/usr.sbin/rpc.yppasswdd/
H A Dyppasswdd_mkpw.c169 if (chdir("/var/yp"))
/src/tests/lib/librumphijack/
H A Dh_cwd.c61 if (chdir(path) == -1)
155 if (strcmp(argv[3], "chdir") == 0)
160 errx(EXIT_FAILURE, "invalid chdir type");
/src/usr.sbin/sysinst/
H A Daout2elf.c360 if (chdir(q) < 0)
384 if (chdir(p) < 0)
H A Dmain.c486 if (chdir(home) != 0)
487 (void)chdir("/");
578 chdir(getenv("HOME"));
/src/usr.sbin/ypserv/yppush/
H A Dyppush.c164 if (chdir(YP_DB_PATH) < 0)
166 if (chdir(ypi.ourdomain) < 0)
/src/usr.bin/calendar/
H A Dcalendar.c195 if (chdir(pw->pw_dir) != -1) {
203 if (chdir(caldir) != -1)
206 if (chdir(pw->pw_dir) != -1)

Completed in 55 milliseconds

12345