Home
last modified time | relevance | path

Searched refs:st_uid (Results 1 – 25 of 120) sorted by relevance

12345

/dragonfly/contrib/openpam/lib/libpam/
H A Dopenpam_check_owner_perms.c78 if ((sb.st_uid != root && sb.st_uid != arbitrator) || in openpam_check_desc_owner_perms()
129 if ((sb.st_uid != root && sb.st_uid != arbitrator) || in openpam_check_path_owner_perms()
/dragonfly/bin/pax/
H A Dfile_subs.c112 if (nodirs || chk_path(arcn->name,arcn->sb.st_uid,arcn->sb.st_gid) < 0) { in file_creat()
145 res = set_ids(arcn->name, arcn->sb.st_uid, arcn->sb.st_gid); in file_close()
312 if (!nodirs && chk_path(from, to_sb->st_uid, to_sb->st_gid) == 0) in mk_link()
414 if (nodirs || chk_path(arcn->name,arcn->sb.st_uid,arcn->sb.st_gid) < 0) { in node_creat()
425 set_lids(arcn->name, arcn->sb.st_uid, arcn->sb.st_gid) : in node_creat()
426 set_ids(arcn->name, arcn->sb.st_uid, arcn->sb.st_gid)); in node_creat()
552 chk_path( char *name, uid_t st_uid, gid_t st_gid) in chk_path() argument
604 set_ids(name, st_uid, st_gid); in chk_path()
H A Dcpio.c290 arcn->sb.st_uid = (uid_t)asc_ul(hd->c_uid, sizeof(hd->c_uid), OCT); in cpio_rd()
429 ul_asc((u_long)arcn->sb.st_uid, hd->c_uid, sizeof(hd->c_uid), in cpio_wr()
569 arcn->sb.st_uid = (uid_t)asc_ul(hd->c_uid, sizeof(hd->c_uid), HEX); in vcpio_rd()
744 ul_asc((u_long)arcn->sb.st_uid, hd->c_uid, sizeof(hd->c_uid), in vcpio_wr()
866 arcn->sb.st_uid = (uid_t)(RSHRT_EXT(hd->h_uid)); in bcpio_rd()
881 arcn->sb.st_uid = (uid_t)(SHRT_EXT(hd->h_uid)); in bcpio_rd()
1046 hd->h_uid[0] = CHR_WR_2(arcn->sb.st_uid); in bcpio_wr()
1047 hd->h_uid[1] = CHR_WR_3(arcn->sb.st_uid); in bcpio_wr()
1048 if (arcn->sb.st_uid != (uid_t)(SHRT_EXT(hd->h_uid))) in bcpio_wr()
H A Dtar.c387 arcn->sb.st_uid = (uid_t)asc_ul(hd->uid, sizeof(hd->uid), OCT); in tar_rd()
606 ul_oct((u_long)arcn->sb.st_uid, hd->uid, sizeof(hd->uid), 0) || in tar_wr()
759 if (uid_from_user(hd->uname, &(arcn->sb.st_uid)) < 0) in ustar_rd()
760 arcn->sb.st_uid = (uid_t)asc_ul(hd->uid, sizeof(hd->uid), OCT); in ustar_rd()
992 ul_oct((u_long)arcn->sb.st_uid, hd->uid, sizeof(hd->uid), 3) || in ustar_wr()
996 user = user_from_uid(arcn->sb.st_uid, 1); in ustar_wr()
H A Dsel_subs.c175 pt = usrtb[((unsigned)arcn->sb.st_uid) % USR_TB_SZ]; in usr_match()
177 if (pt->uid == arcn->sb.st_uid) in usr_match()
/dragonfly/crypto/openssh/
H A Dauth-rhosts.c268 ((st.st_uid != 0 && st.st_uid != pw->pw_uid) || in auth_rhosts2()
297 ((st.st_uid != 0 && st.st_uid != pw->pw_uid) || in auth_rhosts2()
H A Dsftp-common.c75 a->uid = st->st_uid; in stat_to_attrib()
93 st->st_uid = a->uid; in attrib_to_stat()
227 snprintf(ubuf, sizeof ubuf, "%u", (u_int)st->st_uid); in ls_file()
236 user = user_from_uid(st->st_uid, 0); in ls_file()
H A Dsshpty.c193 if (st.st_uid != pw->pw_uid || st.st_gid != gid) { in pty_setowner()
196 (st.st_uid == pw->pw_uid || st.st_uid == 0)) in pty_setowner()
H A Dsftp-usergroup.c157 if (ruser_name(g->gl_statv[i]->st_uid) != NULL) in collect_ids_from_glob()
159 id = (u_int)g->gl_statv[i]->st_uid; in collect_ids_from_glob()
/dragonfly/bin/cp/
H A Dutils.c309 if (!gotstat || fs->st_uid != ts.st_uid || fs->st_gid != ts.st_gid) in setfile()
310 if (fdval ? fchown(fd, fs->st_uid, fs->st_gid) : in setfile()
311 (islink ? lchown(to.p_path, fs->st_uid, fs->st_gid) : in setfile()
312 chown(to.p_path, fs->st_uid, fs->st_gid))) { in setfile()
/dragonfly/usr.sbin/mtree/
H A Dspecspec.c73 printf(" uid=%d", n->st_uid); in shownode()
75 pw = getpwuid(n->st_uid); in shownode()
77 printf(" uid=%d", n->st_uid); in shownode()
161 if (FF(n1, n2, F_UID, st_uid)) in compare_nodes()
163 if (FF(n1, n2, F_UNAME, st_uid)) in compare_nodes()
H A Dcompare.c201 (lchown(p->fts_accpath, p->fts_statp->st_uid, in compare()
214 if (s->flags & (F_UID | F_UNAME) && s->st_uid != p->fts_statp->st_uid) { in compare()
218 tab, (u_long)s->st_uid, (u_long)p->fts_statp->st_uid); in compare()
220 if (lchown(p->fts_accpath, s->st_uid, -1)) in compare()
H A Dcreate.c234 if (keys & (F_UID | F_UNAME) && p->fts_statp->st_uid != uid) { in statf()
236 (name = user_from_uid(p->fts_statp->st_uid, 1)) != NULL) in statf()
240 p->fts_statp->st_uid); in statf()
368 suid = p->fts_statp->st_uid; in statd()
H A Dspec.c333 (name = user_from_uid(cur->st_uid, 1)) != NULL) in dump_nodes()
337 cur->st_uid); in dump_nodes()
508 REPLACE(st_uid); in replacenode()
644 ip->st_uid = (uid_t)strtoul(val, &ep, 10); in set()
653 ip->st_uid = uid; in set()
/dragonfly/lib/libutil/
H A D_secure_path.c61 else if ((int)uid != -1 && sb.st_uid != uid && sb.st_uid != 0) { in _secure_path()
/dragonfly/usr.sbin/pw/
H A Drm_r.c58 if (S_ISLNK(st.st_mode) || st.st_uid == uid) in rm_r()
68 else if (st.st_uid == uid) in rm_r()
/dragonfly/usr.sbin/chown/
H A Dchown.c180 if ((uid == (uid_t)(-1) || uid == p->fts_statp->st_uid) && in main()
193 p->fts_statp->st_uid, in main()
198 p->fts_statp->st_uid : in main()
/dragonfly/libexec/atrun/
H A Datrun.c207 (lbuf.st_uid != buf.st_uid) || (lbuf.st_gid != buf.st_gid) || in run_file()
519 batch_uid = buf.st_uid; in main()
526 run_file(dirent->d_name, buf.st_uid, buf.st_gid); in main()
/dragonfly/contrib/diffutils/src/
H A Dsystem.h225 && (s)->st_uid == (t)->st_uid \
/dragonfly/gnu/usr.bin/diff/diff/
H A Dsystem.h225 && (s)->st_uid == (t)->st_uid \
/dragonfly/bin/mv/
H A Dmv.c201 user_from_uid((unsigned long)sb.st_uid, 0), in do_move()
319 if (fchown(to_fd, sbp->st_uid, sbp->st_gid)) { in fastcopy()
321 (u_long)sbp->st_uid, (u_long)sbp->st_gid); in fastcopy()
/dragonfly/usr.bin/dsynth/
H A Dmonitor.c76 if (st.st_uid && st.st_uid != getuid()) in MonitorInit()
/dragonfly/bin/cpdup/
H A Dcpdup.c491 return (st1->st_uid == st2->st_uid && st1->st_gid == st2->st_gid); in OwnerMatch()
838 hc_chown(&DstHost, dpath, stat1->st_uid, stat1->st_gid); in DoCopy()
919 hc_chown(&DstHost, dpath, stat1->st_uid, stat1->st_gid) != 0 in DoCopy()
1035 hc_chown(&DstHost, dpath, stat1->st_uid, stat1->st_gid); in DoCopy()
1158 hc_chown(&DstHost, path, stat1->st_uid, stat1->st_gid); in DoCopy()
1263 hc_lchown(&DstHost, path, stat1->st_uid, stat1->st_gid); in DoCopy()
1299 hc_lchown(&DstHost, dpath, stat1->st_uid, stat1->st_gid); in DoCopy()
1336 hc_chown(&DstHost, path, stat1->st_uid, stat1->st_gid); in DoCopy()
/dragonfly/usr.sbin/makefs/
H A Dwalk.c536 dirnode->inode->st.st_uid, specnode->st_uid); in apply_specentry()
537 dirnode->inode->st.st_uid = specnode->st_uid; in apply_specentry()
/dragonfly/contrib/nvi2/ex/
H A Dex_init.c364 if (!(rootown && sbp->st_uid == 0) && in exrc_isok()
365 !(rootid && euid == 0) && sbp->st_uid != euid) { in exrc_isok()

12345