freebsd-ports/net/rdist6/files/patch-src_filesys-os.c
Adam Weinberger 69ea23ed71 Rename net/ patch-xy patches to reflect the files they modify.
Approve by:	portmgr (not really, but one of these is modifying
		an unstaged port)
2014-07-29 01:59:16 +00:00

23 lines
599 B
C

--- src/filesys-os.c.dist Fri Feb 16 03:01:04 1996
+++ src/filesys-os.c Wed Feb 3 23:38:46 1999
@@ -180,4 +180,5 @@
mntstruct.me_flags |= MEFLAG_READONLY;
#endif
+#ifdef MOUNT_NFS
switch ((ulong)((struct statfs*)mnt)->f_type) {
case MOUNT_NFS:
@@ -191,4 +192,14 @@
break;
}
+#else
+ if ((((struct statfs*)mnt)->f_flags & MNT_LOCAL) == 0) {
+ (void) sprintf(remote_dev, "%s", mnt->f_mntfromname);
+ mntstruct.me_path = remote_dev;
+ mntstruct.me_type = METYPE_NFS;
+ } else {
+ mntstruct.me_path = mnt->f_mntonname;
+ mntstruct.me_type = METYPE_OTHER;
+ }
+#endif
mnt++;