diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 01:59:16 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 01:59:16 +0000 |
commit | 69ea23ed7175d5c34a21bba1ef9262f311c69284 (patch) | |
tree | e2e604e83659be7f58596e80b3cf18e9d7d06dae /net/rdist6/files/patch-src_filesys-os.c | |
parent | Stage net-mgmt/routers2 and cleanup (diff) |
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)
Notes
Notes:
svn path=/head/; revision=363285
Diffstat (limited to 'net/rdist6/files/patch-src_filesys-os.c')
-rw-r--r-- | net/rdist6/files/patch-src_filesys-os.c | 23 |
1 files changed, 23 insertions, 0 deletions
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++; |