From 69ea23ed7175d5c34a21bba1ef9262f311c69284 Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Tue, 29 Jul 2014 01:59:16 +0000 Subject: 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) --- net/rdist6/files/patch-src_filesys-os.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 net/rdist6/files/patch-src_filesys-os.c (limited to 'net/rdist6/files/patch-src_filesys-os.c') diff --git a/net/rdist6/files/patch-src_filesys-os.c b/net/rdist6/files/patch-src_filesys-os.c new file mode 100644 index 000000000000..b289d18983e8 --- /dev/null +++ b/net/rdist6/files/patch-src_filesys-os.c @@ -0,0 +1,23 @@ +--- 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++; -- cgit v1.2.3