Symbol: chmod
bin/mkdir/mkdir.c
113
if (success == 1 && mode != NULL && chmod(*argv, omode) == -1) {
crypto/heimdal/appl/ftp/ftp/ftp.c
961
chmod (local, 0600) < 0) {
crypto/heimdal/appl/ftp/ftpd/ftpcmd.c
2238
else if (chmod((yyvsp[(7) - (9)].s), (yyvsp[(5) - (9)].i)) < 0)
crypto/heimdal/appl/ftp/ftpd/ftpcmd.y
485
else if (chmod($7, $5) < 0)
crypto/heimdal/appl/ftp/ftpd/ftpd.c
1776
chmod(name, 0700); /* guest has umask 777 */
crypto/heimdal/appl/login/login.c
348
if (chmod (ttyn, S_IRUSR | S_IWUSR | S_IWGRP) < 0) {
crypto/heimdal/appl/rcp/rcp.c
543
chmod(np, mode);
crypto/heimdal/appl/rcp/rcp.c
559
chmod(np, mode);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
1535
chmod(line, 0666);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
1538
chmod(line, 0666);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
1568
chmod(line, 0666);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
1577
chmod(line, 0666);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
1659
chmod(line, 0666);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
1662
chmod(line, 0666);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
458
chmod(line, 0600);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
462
chmod(line, 0666);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
494
chmod(line, 0600);
crypto/heimdal/appl/telnet/telnetd/sys_term.c
969
chmod(line, 0600);
crypto/heimdal/lib/ipc/server.c
1117
chmod(un.sun_path, 0666);
crypto/krb5/src/lib/krb5/ccache/cc_dir.c
193
chmod(newpath, S_IRUSR | S_IWUSR);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
494
st = chmod(data->filename, S_IRUSR | S_IWUSR);
crypto/krb5/src/lib/krb5/ccache/cc_file.c
872
chmod(data->filename, S_IRUSR | S_IWUSR);
crypto/krb5/src/plugins/kdb/db2/libdb2/hash/hash.c
519
chmod(hashp->fname, 0700);
crypto/openssh/openbsd-compat/bsd-misc.c
216
return chmod(path, mode);
crypto/openssh/scp.c
1853
(void) chmod(np, mode);
crypto/openssh/scp.c
1867
(void) chmod(vect[0], mode);
crypto/openssh/scp.c
1940
if (chmod(np, omode)) {
crypto/openssh/scp.c
1950
if (chmod(np, omode & ~mask)) {
crypto/openssh/sftp-client.c
1850
if (preserve_flag && chmod(local_path, mode) == -1)
crypto/openssh/sftp-client.c
1992
if (mode != tmpmode && chmod(dst, mode) == -1)
crypto/openssh/sftp-server.c
1055
r = chmod(name, a.perm & 07777);
crypto/openssh/sftp-server.c
999
r = chmod(name, a.perm & 07777);
crypto/openssh/sshpty.c
204
if (chmod(tty, mode) == -1) {
crypto/openssh/sshpty.c
88
if (chmod(tty, (mode_t) 0666) == -1)
crypto/openssl/crypto/rand/randfile.c
260
chmod(file, 0600);
lib/libc/tests/gen/fts_regress_test.c
194
ATF_REQUIRE_EQ(0, chmod("dir", 0100));
lib/libc/tests/gen/fts_regress_test.c
87
ATF_REQUIRE_EQ(0, chmod("dir", 0400));
lib/libc/tests/gen/glob2_test.c
157
ATF_REQUIRE_EQ(0, chmod("test", 0));
lib/libc/tests/gen/glob_blocks_test.c
38
ATF_REQUIRE_EQ(0, chmod("test", 0));
lib/libc/tests/gen/posix_spawn_test.c
159
(void)chmod("unsearchable", 0444);
lib/libc/tests/gen/realpath2_test.c
158
ATF_REQUIRE_EQ(0, chmod("foo", 000));
lib/libpam/modules/pam_krb5/pam_krb5.c
606
if (chmod(&cache_name[5], (S_IRUSR | S_IWUSR)) == -1) {
lib/libutil/gr_util.c
333
if (chmod(tempname, 0644) != 0)
libexec/atrun/atrun.c
149
if (chmod(filename, S_IRUSR) != 0)
libexec/flua/modules/lposix.c
566
REG_SIMPLE(chmod),
libexec/flua/modules/lposix.c
78
if (chmod(path, mode) == -1) {
libexec/getty/main.c
212
chmod(ttyn, 0600);
sbin/devd/devd.cc
940
if (chmod(name, 0666))
sbin/fsck_ffs/main.c
665
chmod(snapname, 0770) < 0) {
sbin/mdmfs/mdmfs.c
581
if (chmod(mtpoint, mip->mi_mode) == -1)
sbin/restore/dirs.c
645
(void) chmod(cp, node.mode);
sbin/restore/tape.c
651
(void) chmod(name, mode);
sbin/restore/tape.c
681
(void) chmod(name, mode);
sys/sys/stat.h
369
int chmod(const char *, mode_t);
tests/sys/audit/file-attribute-modify.c
213
ATF_REQUIRE_EQ(0, chmod(path, mode));
tests/sys/audit/file-attribute-modify.c
235
ATF_REQUIRE_ERRNO(ENOENT, chmod(errpath, mode) == -1);
tests/sys/capsicum/capmode.cc
71
EXPECT_CAPMODE(chmod(TmpFile("cap_capmode_chmod"), 0644));
tests/sys/cddl/zfs/tests/ctime/ctime_001_pos.c
349
if (chmod(pfile, ALL_MODE) == -1) {
tests/sys/file/path_test.c
354
ATF_REQUIRE_MSG(chmod(path, 0500) == 0, FMT_ERR("chmod"));
tests/sys/file/path_test.c
382
ATF_REQUIRE_MSG(chmod(path, 0500) == 0, FMT_ERR("chmod"));
tests/sys/fs/fusefs/access.cc
112
EXPECT_EQ(0, chmod(FULLPATH, newmode)) << strerror(errno);
tests/sys/fs/fusefs/access.cc
90
TEST_F(Access, chmod)
tests/sys/fs/fusefs/default_permissions.cc
1303
EXPECT_EQ(0, chmod(FULLPATH, newmode)) << strerror(errno);
tests/sys/fs/fusefs/default_permissions.cc
1323
EXPECT_NE(0, chmod(FULLPATH, newmode));
tests/sys/fs/fusefs/default_permissions.cc
1387
EXPECT_NE(0, chmod(FULLPATH, newmode));
tests/sys/fs/fusefs/default_permissions.cc
1409
EXPECT_NE(0, chmod(FULLPATH, newmode));
tests/sys/fs/fusefs/default_permissions_privileged.cc
121
EXPECT_EQ(0, chmod(FULLPATH, newmode)) << strerror(errno);
tests/sys/fs/fusefs/rename.cc
172
chmod(path, 0777);
tests/sys/fs/fusefs/setattr.cc
116
ASSERT_EQ(0, chmod(FULLPATH, newmode)) << strerror(errno);
tests/sys/fs/fusefs/setattr.cc
124
TEST_F(Setattr, chmod)
tests/sys/fs/fusefs/setattr.cc
153
EXPECT_EQ(0, chmod(FULLPATH, newmode)) << strerror(errno);
tests/sys/fs/fusefs/setattr.cc
212
ASSERT_EQ(0, chmod(FULLPATH0, newmode)) << strerror(errno);
tests/sys/fs/fusefs/setattr.cc
827
ASSERT_EQ(-1, chmod(FULLPATH, newmode));
tests/sys/fs/fusefs/setattr.cc
832
TEST_F(Setattr_7_8, chmod)
tests/sys/fs/fusefs/setattr.cc
861
EXPECT_EQ(0, chmod(FULLPATH, newmode)) << strerror(errno);
tools/regression/priv/main.c
396
if (chmod(dpathp, mode) < 0)
tools/regression/priv/priv_io.c
106
if (chmod(DEV_IO, saved_perms) < 0)
tools/regression/priv/priv_io.c
70
if (chmod(DEV_IO, NEW_PERMS) < 0) {
tools/regression/priv/priv_vfs_chmod.c
103
error = chmod(fpath, 0640);
tools/regression/priv/priv_vfs_chmod.c
122
error = chmod(fpath, 0640);
tools/regression/priv/priv_vfs_chmod.c
85
error = chmod(fpath, 0640);
tools/regression/priv/priv_vfs_setgid.c
76
error = chmod(fpath, 0600 | S_ISGID);
tools/regression/priv/priv_vfs_setgid.c
96
error = chmod(fpath, 0600 | S_ISGID);
tools/regression/priv/priv_vfs_stickyfile.c
119
error = chmod(dpath, 0700 | S_ISTXT);
tools/regression/priv/priv_vfs_stickyfile.c
139
error = chmod(fpath, 0600 | S_ISTXT);
tools/regression/priv/priv_vfs_stickyfile.c
159
error = chmod(fpath, 0600 | S_ISTXT);
tools/regression/priv/priv_vfs_stickyfile.c
99
error = chmod(dpath, 0700 | S_ISTXT);
tools/regression/security/cap_test/cap_test_capmode.c
88
CHECK_CAPMODE(chmod, "/tmp/cap_capmode_chmod", 0644);
tools/regression/security/open_to_operation/open_to_operation.c
1082
if (chmod(dir_path, PERM_DIR) < 0) {
tools/regression/security/open_to_operation/open_to_operation.c
1095
if (chmod(file_path, PERM_FILE) < 0) {
usr.bin/ar/acpyacc.y
492
if (chmod(target, 0666 & ~mask) < 0)
usr.bin/biff/biff.c
76
if (chmod(name, sb.st_mode & ~(S_IXUSR | S_IXGRP)) < 0)
usr.bin/biff/biff.c
80
if (chmod(name, (sb.st_mode & ~(S_IXUSR | S_IXGRP)) | S_IXUSR)
usr.bin/biff/biff.c
85
if (chmod(name, (sb.st_mode & ~(S_IXUSR | S_IXGRP)) | S_IXGRP)
usr.bin/compress/compress.c
373
if (chmod(name, fs->st_mode) && errno != EOPNOTSUPP)
usr.bin/fetch/fetch.c
721
chmod(tmppath, sb.st_mode & ALLPERMS);
usr.bin/fortune/fortune/fortune.c
192
chmod(Fortfile->path, 0666);
usr.bin/login/login_fbtab.c
133
if (chmod(path, mask) && errno != ENOENT)
usr.bin/mesg/mesg.c
82
if (chmod(tty, sb.st_mode | S_IWGRP) < 0)
usr.bin/mesg/mesg.c
86
if (chmod(tty, sb.st_mode & ~S_IWGRP) < 0)
usr.bin/msgs/msgs.c
317
chmod(fname, CMODE);
usr.bin/msgs/msgs.c
336
chmod(fname, CMODE);
usr.bin/patch/patch.c
422
chmod(TMPOUTNAME, filemode);
usr.bin/patch/patch.c
424
chmod(outname, filemode);
usr.bin/patch/pch.c
1517
chmod(TMPOUTNAME, filemode);
usr.bin/patch/pch.c
1519
chmod(outname, filemode);
usr.bin/xinstall/xinstall.c
1401
if (chmod(path, mode) != 0)
usr.sbin/bluetooth/sdpd/server.c
106
if (chmod(control, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) < 0) {
usr.sbin/cron/crontab/crontab.c
583
if (chmod(tn, 0600) < OK)
usr.sbin/inetd/inetd.c
1311
if (chmod(sep->se_service, sep->se_sockmode) < 0)
usr.sbin/lpr/chkprintcap/chkprintcap.c
308
if (chmod(sd, SPOOL_DIR_MODE) < 0) {
usr.sbin/lpr/common_source/common.c
401
chres = chmod(lfname, chgbits);
usr.sbin/lpr/lpc/cmds.c
1197
(void) chmod(pp->lock_file, stbuf.st_mode | LFM_RESET_QUE);
usr.sbin/lpr/lpr/lpr.c
456
chmod(dfname, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
usr.sbin/newsyslog/newsyslog.c
2871
failed = chmod(fname, ent->permissions);
usr.sbin/nscd/nscd.c
195
chmod(config->socket_path, config->socket_mode);
usr.sbin/pw/pw_nis.c
69
if (chmod(pw_tempname(), 0644) == -1)
usr.sbin/rpc.yppasswdd/yppasswdd_main.c
314
if (chmod(sockname, 0))
usr.sbin/rtadvd/control.c
318
if (chmod(s->si_name, mode) == -1) {