Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/touch -f no longer has effect. from Snader_LB on irc.
details: https://anonhg.NetBSD.org/src/rev/4143f6d3bff2
branches: trunk
changeset: 762529:4143f6d3bff2
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Feb 22 15:03:30 2011 +0000
description:
-f no longer has effect. from Snader_LB on irc.
diffstat:
usr.bin/touch/touch.1 | 7 +++----
usr.bin/touch/touch.c | 9 ++++-----
2 files changed, 7 insertions(+), 9 deletions(-)
diffs (71 lines):
diff -r f1ab546d6ffe -r 4143f6d3bff2 usr.bin/touch/touch.1
--- a/usr.bin/touch/touch.1 Tue Feb 22 14:23:37 2011 +0000
+++ b/usr.bin/touch/touch.1 Tue Feb 22 15:03:30 2011 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: touch.1,v 1.16 2003/08/07 11:16:44 agc Exp $
+.\" $NetBSD: touch.1,v 1.17 2011/02/22 15:03:30 pooka Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -32,7 +32,7 @@
.\"
.\" @(#)touch.1 8.3 (Berkeley) 4/28/95
.\"
-.Dd April 28, 1995
+.Dd February 22, 2011
.Dt TOUCH 1
.Os
.Sh NAME
@@ -65,8 +65,7 @@
utility does not treat this as an error.
No error messages are displayed and the exit value is not affected.
.It Fl f
-Attempt to force the update, even if the file permissions do not
-currently permit it.
+This flag has no effect; it is accepted for compatibility reasons.
.It Fl h
If
.Ar file
diff -r f1ab546d6ffe -r 4143f6d3bff2 usr.bin/touch/touch.c
--- a/usr.bin/touch/touch.c Tue Feb 22 14:23:37 2011 +0000
+++ b/usr.bin/touch/touch.c Tue Feb 22 15:03:30 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: touch.c,v 1.28 2009/04/28 02:47:12 yamt Exp $ */
+/* $NetBSD: touch.c,v 1.29 2011/02/22 15:03:30 pooka Exp $ */
/*
* Copyright (c) 1993
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)touch.c 8.2 (Berkeley) 4/28/95";
#endif
-__RCSID("$NetBSD: touch.c,v 1.28 2009/04/28 02:47:12 yamt Exp $");
+__RCSID("$NetBSD: touch.c,v 1.29 2011/02/22 15:03:30 pooka Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -71,14 +71,14 @@
{
struct stat sb;
struct timeval tv[2];
- int aflag, cflag, fflag, hflag, mflag, ch, fd, len, rval, timeset;
+ int aflag, cflag, hflag, mflag, ch, fd, len, rval, timeset;
char *p;
int (*change_file_times) __P((const char *, const struct timeval *));
int (*get_file_status) __P((const char *, struct stat *));
setlocale(LC_ALL, "");
- aflag = cflag = fflag = hflag = mflag = timeset = 0;
+ aflag = cflag = hflag = mflag = timeset = 0;
if (gettimeofday(&tv[0], NULL))
err(1, "gettimeofday");
@@ -91,7 +91,6 @@
cflag = 1;
break;
case 'f':
- fflag = 1;
break;
case 'h':
hflag = 1;
Home |
Main Index |
Thread Index |
Old Index