mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
* src/copy.c (copy_internal): Add a comment saying why we prefer
mknod over mkfifo.
This commit is contained in:
1 parent
a75684d6ea
commit
46775398f2
2 files changed
+6
No files matched your search
@@ -1634,6 +1634,9 @@ copy_internal (char const *src_name, char const *dst_name,
|
||||
}
|
||||
else if (S_ISFIFO (src_mode))
|
||||
{
|
||||
/* Use mknod, rather than mkfifo, because the former preserves
|
||||
the special mode bits of a fifo on Solaris 10, while mkfifo
|
||||
does not. */
|
||||
if (mknod (dst_name, src_mode, 0) != 0)
|
||||
{
|
||||
error (0, errno, _("cannot create fifo %s"), quote (dst_name));
|
||||
|
||||
Reference in new issue
Block a user