コード例 #1
0
int chown(const char *pathname, uid_t owner, gid_t group) {
    static int (*real_chown)(const char *pathname, uid_t owner, gid_t group) = NULL;
    const char *p;
    int ret;

    GET_PATH(chown);
    if (p) {
	ret = real_chown(p, owner, group);
	PUT_PATH(-1);
    }
    return real_chown(pathname, owner, group);
}
コード例 #2
0
ファイル: wrapped.c プロジェクト: hynnet/ralink_sdk
int chown(char *name,uid_t owner, gid_t group)
{
    if (smbw_path(name)) {
        return smbw_chown(name, owner, group);
    }

    return real_chown(name, owner, group);
}