Searched refs:fchown (Results 1 - 25 of 54) sorted by relevance

123

/freebsd-head/crypto/heimdal/lib/roken/
H A Dfchown.c39 fchown(int fd, uid_t owner, gid_t group) function
/freebsd-head/contrib/sendmail/test/
H A Dt_pathconf.c68 if (fchown(fd, 1, 1) >= 0)
69 printf("*** but fchown works anyhow! ***\n");
71 printf("and fchown agrees\n");
77 if (fchown(fd, 1, 1) >= 0)
/freebsd-head/sys/contrib/openzfs/tests/zfs-tests/cmd/mkfiles/
H A Dmkfiles.c58 } else if (fchown(fd, getuid(), getgid()) < 0) {
/freebsd-head/tests/sys/cddl/zfs/bin/
H A Ddir_rd_update.c112 chownret = fchown(fd, 0, 0);
/freebsd-head/sys/contrib/openzfs/tests/zfs-tests/cmd/dir_rd_update/
H A Ddir_rd_update.c125 chownret = fchown(fd, 0, 0);
/freebsd-head/usr.sbin/pw/
H A Dcpdir.c120 fchown(destfd, uid, gid);
/freebsd-head/contrib/dma/
H A Ddma-mbox-create.c180 if (fchown(f, user_uid, mail_gid))
/freebsd-head/tests/sys/fifo/
H A Dfifo_misc.c228 * fchmod(2)/fchown(2) on FIFO should work.
276 if (fchown(reader_fd, -1, -1) != 0) {
277 warn("%s: fchown 1", __func__);
286 if (fchown(reader_fd, u, g) != 0) {
287 warn("%s: fchown 2", __func__);
/freebsd-head/sys/kern/
H A Dcapabilities.conf179 fchown
/freebsd-head/contrib/tcpdump/lbl/
H A Dos-sunos4.h65 int fchown(int, int, int);
/freebsd-head/contrib/libpcap/lbl/
H A Dos-sunos4.h65 int fchown(int, int, int);
/freebsd-head/sbin/mksnap_ffs/
H A Dmksnap_ffs.c181 if (fchown(fd, -1, grp->gr_gid) != 0)
/freebsd-head/sys/contrib/openzfs/tests/zfs-tests/cmd/mkfile/
H A Dmkfile.c142 } else if (fchown(fd, getuid(), getgid()) < 0) {
/freebsd-head/usr.sbin/cron/crontab/
H A Dcrontab.c351 if (fchown(t, getuid(), getgid()) < 0) {
355 warn("fchown");
580 if (fchown(fileno(tmp), ROOT_UID, -1) < OK)
/freebsd-head/contrib/libarchive/libarchive/test/
H A Dtest_write_disk_perms.c71 /* Find a GID for which fchown() fails. This is our "invalid" GID. */
75 if (fchown(fd, uid, gid) != 0) {
82 * Find a GID for which fchown() succeeds, but which isn't the
90 if (fchown(fd, uid, gid) == 0) {
/freebsd-head/sys/sys/
H A Dsyscall.mk92 fchown.o \
/freebsd-head/contrib/sendmail/libsmdb/
H A Dsmndbm.c253 result = fchown(fd, uid, gid);
261 result = fchown(fd, uid, gid);
599 /* XXX Got to get fchown stuff in here */
/freebsd-head/usr.bin/chpass/
H A Dedit.c195 (void)fchown(fileno(fp), getuid(), getgid());
/freebsd-head/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c303 ret = fchown(fd_cap, -1, -1);
304 CHECK_RESULT(fchown, CAP_FCHOWN, ret == 0);
/freebsd-head/usr.sbin/lpr/lpr/
H A Dlpr.c332 (void) fchown(tfd, pp->daemon_user, -1);
650 if (fchown(f, userid, -1) < 0) {
/freebsd-head/lib/libutil/
H A Dquotafile.c198 fchown(qf->fd, 0, grp ? grp->gr_gid : 0);
568 fchown(newqf->fd, 0, grp ? grp->gr_gid : 0);
/freebsd-head/contrib/xz/src/xz/
H A Dfile_io.c104 // If fchown() fails setting the owner, we warn about it only if
362 // isn't already us, fchown() probably doesn't succeed. We warn
363 // about failing fchown() only if we are root.
364 if (fchown(pair->dest_fd, pair->src_st.st_uid, (gid_t)(-1))
371 if (fchown(pair->dest_fd, (uid_t)(-1), pair->src_st.st_gid)) {
681 // for them, but calls fchown() after fchmod(),
/freebsd-head/tools/regression/priv/
H A Dmain.c412 if (fchown(fd, uid, gid) < 0)
413 err(-1, "test %s: fchown(%s, %d, %d)", test, fpathp, uid,
/freebsd-head/bin/mv/
H A Dmv.c317 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) {
/freebsd-head/contrib/apr/network_io/unix/
H A Dsockopt.c455 if (fchown(socket->socketdes, uid, gid) < 0) {

Completed in 164 milliseconds

123