﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
230	chmod() fails on HPFS386 in UnixEAs mode if the file is read-only	dmik	bird	"The following test cases shows the problem:
{{{
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>

int main()
{
    int fd = open(""test"", O_RDONLY | O_CREAT | O_EXCL,
                  S_IRUSR | S_IRGRP | S_IROTH);
    if (fd == -1)
    {
        perror(""open"");
        return 1;
    }
    close(fd);

    if (chmod(""test"", S_IRUSR | S_IRGRP | S_IROTH) == -1)
        perror(""chmod"");
	
    return 0;
}
}}}

This does not happen on HPFS or on JFS (e.g. chmod() succeeds in this case)."	defect	assigned	normal		libc-backend	0.6	normal		chmod hpfs386	
