For the /dev/fd feature, for any user to be able to access thesefiels, their permissions must be rw-rw-rw. Some programs thatcreate an output file delete the file first, in case it alreadyexist, ignoring the return code:

unlink (path);

If ((fd = creat (path, FILE_MODE)) < 0)

printf (“errorn”);

What happens if path is /dev/fd/1?