选择文件名文件大小最后修改时间操作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
查看 prot.c - 文件管理器
👁 查看:prot.c
路径:/usr/local/fehQlibs-23/prot.c
大小:661 B · 修改:2018-08-02 08:08:38 · 权限:0644 · 只读
#include <sys/types.h>
#include <unistd.h>
#include <grp.h>
//#include "hasshsgr.h"
#include "prot.h"

/**
	@file prot.c
	@author djb
	@source qmail
	@brief setting up uid an gid for OS (short group was for ancient solaris)
*/

/* XXX: there are more portability problems here waiting to leap out at me */

int prot_gid(int gid)
{
//#ifdef HASSHORTSETGROUPS
//  short x[2];
//  x[0] = gid; x[1] = 73; /* catch errors */
//  if (setgroups(1,x) == -1) return -1;
//#else
  if (setgroups(1,(gid_t *)&gid) == -1) return -1;
//#endif
  return setgid(gid); /* _should_ be redundant, but on some systems it isn't */
}

int prot_uid(int uid) 
{
  return setuid(uid);
}
404 NOT FOUND | 人工芝販売・施工【大阪・近畿】人工芝エメラルド

404 NOT FOUND

404 Not Found

お探しのページは見つかりませんでした。