W
W
Warinator2015-06-29 17:28:48
linux
Warinator, 2015-06-29 17:28:48

Why, in Elementary OS Freya, if a file written via the write (C) function with the O_CREAT flag is saved, it cannot be accessed?

A file saved in this way cannot be opened or copied, it can only be deleted. This is fixed by changing the access attributes, but how do you make such files available by default? In the Luna version, I did not encounter this.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
3
3vi1_0n3, 2015-06-29
@Warinator

Maybe you need mode_t umask(mode_t creationMask);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question