Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/fs/vfs Now that permissions for msdos have been fixed, ...
details: https://anonhg.NetBSD.org/src/rev/b4f1b34edd89
branches: trunk
changeset: 778441:b4f1b34edd89
user: njoly <njoly%NetBSD.org@localhost>
date: Mon Mar 26 15:13:20 2012 +0000
description:
Now that permissions for msdos have been fixed, kill times() special
case which was wrong.
diffstat:
tests/fs/vfs/t_unpriv.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 5a059f89c32b -r b4f1b34edd89 tests/fs/vfs/t_unpriv.c
--- a/tests/fs/vfs/t_unpriv.c Mon Mar 26 15:10:26 2012 +0000
+++ b/tests/fs/vfs/t_unpriv.c Mon Mar 26 15:13:20 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_unpriv.c,v 1.7 2012/03/23 09:58:23 njoly Exp $ */
+/* $NetBSD: t_unpriv.c,v 1.8 2012/03/26 15:13:20 njoly Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -121,7 +121,7 @@
times(const atf_tc_t *tc, const char *mp)
{
const char *name = "file.test";
- int fd, expect;
+ int fd;
struct timeval tmv[2];
FSTEST_ENTER();
@@ -144,8 +144,7 @@
rump_pub_lwproc_rfork(RUMP_RFCFDG);
if (rump_sys_setuid(1) == -1)
atf_tc_fail_errno("setuid");
- expect = FSTYPE_MSDOS(tc) ? EACCES : EPERM;
- if (rump_sys_utimes(name, tmv) != -1 || errno != expect)
+ if (rump_sys_utimes(name, tmv) != -1 || errno != EPERM)
atf_tc_fail_errno("utimes");
rump_pub_lwproc_releaselwp();
Home |
Main Index |
Thread Index |
Old Index