diff options
Diffstat (limited to 'meta/recipes-devtools/unfs-server/unfs-server-2.1+2.2beta47/015-setattr.patch')
-rw-r--r-- | meta/recipes-devtools/unfs-server/unfs-server-2.1+2.2beta47/015-setattr.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/meta/recipes-devtools/unfs-server/unfs-server-2.1+2.2beta47/015-setattr.patch b/meta/recipes-devtools/unfs-server/unfs-server-2.1+2.2beta47/015-setattr.patch deleted file mode 100644 index 3b86d43bc2..0000000000 --- a/meta/recipes-devtools/unfs-server/unfs-server-2.1+2.2beta47/015-setattr.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | Upstream-Status: Inappropriate [other] | ||
2 | Upstream is not making further releases of this software. | ||
3 | |||
4 | Signed-off-by: Scott Garman <scott.a.garman@intel.com> | ||
5 | |||
6 | # Patch origin: nfs-server source RPM from openSUSE 10.3 | ||
7 | |||
8 | --- nfs-server/setattr.c.orig 2006-07-28 16:38:26.000000000 +0200 | ||
9 | +++ nfs-server/setattr.c 2006-07-28 16:42:28.000000000 +0200 | ||
10 | @@ -97,7 +97,20 @@ | ||
11 | tvp[1].tv_sec = s->st_mtime; | ||
12 | tvp[1].tv_usec = 0; | ||
13 | } | ||
14 | - if (efs_utimes(path, tvp) < 0) | ||
15 | + if (m_secs != IGNORE_TIME && attr->mtime.useconds == 1000000) { | ||
16 | + /* | ||
17 | + * from kernel/fs/nfsd/nfsxdr.c: | ||
18 | + * Passing the invalid value useconds=1000000 for mtime | ||
19 | + * is a Sun convention for "set both mtime and atime to | ||
20 | + * current server time". It's needed to make permissions | ||
21 | + * checks for the "touch" program across v2 mounts to | ||
22 | + * Solaris and Irix boxes work correctly. See description of | ||
23 | + * sattr in section 6.1 of "NFS Illustrated" by | ||
24 | + * Brent Callaghan, Addison-Wesley, ISBN 0-201-32750-5 | ||
25 | + */ | ||
26 | + if (utime(path, (struct utimbuf *)0) < 0) | ||
27 | + goto failure; | ||
28 | + } else if (efs_utimes(path, tvp) < 0) | ||
29 | goto failure; | ||
30 | } | ||
31 | } | ||