Symbol: fchown
bin/cp/utils.c
365
if (fdval ? fchown(fd, fs->st_uid, fs->st_gid) :
bin/mv/mv.c
298
if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) {
crypto/krb5/src/lib/krb5/os/krbfileio.c
74
fchown(fd, uid, gid);
crypto/openssh/openbsd-compat/bsd-misc.c
185
ret = fchown(fd, owner, group);
crypto/openssh/sftp-server.c
1087
r = fchown(fd, a.uid, a.gid);
include/unistd.h
412
int fchown(int, uid_t, gid_t);
lib/libutil/quotafile.c
196
fchown(qf->fd, 0, grp ? grp->gr_gid : 0);
lib/libutil/quotafile.c
566
fchown(newqf->fd, 0, grp ? grp->gr_gid : 0);
sbin/mksnap_ffs/mksnap_ffs.c
183
if (fchown(fd, -1, grp->gr_gid) != 0)
sbin/restore/tape.c
709
(void) fchown(ofile, uid, gid);
tests/sys/audit/file-attribute-modify.c
439
ATF_REQUIRE_EQ(0, fchown(filedesc, uid, gid));
tests/sys/audit/file-attribute-modify.c
462
ATF_REQUIRE_ERRNO(EBADF, fchown(-1, uid, gid) == -1);
tests/sys/capsicum/capability-fd.cc
529
CHECK_RIGHT_RESULT(fchown(cap_fd, -1, -1), rights, CAP_FCHOWN);
tests/sys/cddl/zfs/bin/dir_rd_update.c
110
chownret = fchown(fd, 0, 0);
tests/sys/fifo/fifo_misc.c
274
if (fchown(reader_fd, -1, -1) != 0) {
tests/sys/fifo/fifo_misc.c
284
if (fchown(reader_fd, u, g) != 0) {
tests/sys/file/path_test.c
120
ATF_REQUIRE_ERRNO(EBADF, fchown(pathfd, getuid(), getgid()) == -1);
tests/sys/kern/inotify_test.c
552
error = fchown(fd, getuid(), getgid());
tools/regression/priv/main.c
410
if (fchown(fd, uid, gid) < 0)
tools/regression/security/cap_test/cap_test_capabilities.c
300
ret = fchown(fd_cap, -1, -1);
tools/regression/security/cap_test/cap_test_capabilities.c
301
CHECK_RESULT(fchown, CAP_FCHOWN, ret == 0);
tools/regression/security/open_to_operation/open_to_operation.c
339
if (fchown(fd, -1, -1) == 0)
usr.bin/at/at.c
289
if(fchown(fd2, real_uid, real_gid) != 0)
usr.bin/chpass/edit.c
186
(void)fchown(fileno(fp), getuid(), getgid());
usr.bin/gzip/gzip.c
1081
if (fchown(fd, sb.st_uid, sb.st_gid) < 0) {
usr.bin/posixmqcontrol/posixmqcontrol.c
493
result = fchown(fd, q_creation.user, q_creation.group);
usr.bin/sed/main.c
423
fchown(fileno(outfile), sb.st_uid, sb.st_gid);
usr.bin/xinstall/xinstall.c
1026
if (fchown(to_fd, uid, gid) == -1) {
usr.sbin/cron/crontab/crontab.c
337
if (fchown(t, getuid(), getgid()) < 0) {
usr.sbin/cron/crontab/crontab.c
570
if (fchown(fileno(tmp), ROOT_UID, -1) < OK)
usr.sbin/edquota/edquota.c
275
fchown(tmpfd, getuid(), getgid());
usr.sbin/lpr/lpr/lpr.c
317
(void) fchown(tfd, pp->daemon_user, -1);
usr.sbin/lpr/lpr/lpr.c
635
if (fchown(f, userid, -1) < 0) {
usr.sbin/newsyslog/newsyslog.c
2804
failed = fchown(fd, ent->uid, ent->gid);
usr.sbin/pw/cpdir.c
146
if (fchown(destfd, uid, gid) != 0)