Esempio n. 1
0
int chmod(const char *pathname, mode_t mode) {
    static int (*real_chmod)(const char *pathname, mode_t mode) = NULL;
    const char *p;
    int ret;

    GET_PATH(chmod);
    if (p) {
	ret = real_chmod(p, mode);
	PUT_PATH(-1);
    }
    return real_chmod(pathname, mode);
}
Esempio n. 2
0
int chmod(char *name,mode_t mode)
{
    if (smbw_path(name)) {
        return smbw_chmod(name, mode);
    }

    return real_chmod(name, mode);
}
Esempio n. 3
0
int chmod(const char *path, mode_t mode)
{
	if (!strncmp(path, "nfs:", 4)) {
		int fd, ret;

		LD_NFS_DPRINTF(9, "chmod(%s, %o)", path, (int)mode);
		fd = open(path, 0, 0);
		if (fd == -1) {
			return fd;
		}

		ret = fchmod(fd, mode);
		close(fd);
		return ret;
	}

	return real_chmod(path, mode);
}