[Bug 1804] FreeBSD's mknod can't create FIFOs and sockets

samba-bugs at samba.org samba-bugs at samba.org
Wed Sep 22 16:51:38 GMT 2004


------- Additional Comments From wayned at samba.org  2004-09-22 09:51 -------
Created an attachment (id=674)
 --> (https://bugzilla.samba.org/attachment.cgi?id=674&action=view)
Adapted the referenced diff for the modern codebase

There has been a diff in the patches directory named tru64.diff that added this
mkfifo() and socket-making code among some other tru64 changes.  I've separated
these common changes for FreeBSD out into a patch named mkfifo.diff (which is
in the CVS patches dir, as well as attached here).  This should make it easier
for maintainers to customize their version of rsync with this functionality.

The reason that these changes aren't in the main codebase is that it affects
too many systems (as the patch is currently written).  For instance, Linux has
both mkfifo() and the sys/un.h header file, but it needs neither kluge added by
this patch because mknod() works for FIFOs and sockets.  Furthermore, the
socket-making code in this patch looks to be inferior to mknod() (on a system
where mknod() works for sockets) because it has to delay the chmod() call until
after the bind() call.

Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the rsync mailing list