printf (_("\
Create named pipes (FIFOs) with the given NAMEs.\n\
\n\
- -m, --mode=MODE set permission mode (as in chmod), not 0666 - umask\n\
+ -m, --mode=MODE set permission mode (as in chmod), not a=rw - umask\n\
--help display this help and exit\n\
--version output version information and exit\n\
"));
int
main (int argc, char **argv)
{
- unsigned short newmode;
+ mode_t newmode;
struct mode_change *change;
const char *symbolic_mode;
int errors = 0;
usage (1);
}
- newmode = 0666 & ~umask (0);
+ newmode = ((S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)
+ & ~ umask (0));
if (symbolic_mode)
{
change = mode_compile (symbolic_mode, 0);