summaryrefslogtreecommitdiffstats
path: root/usr.bin/touch/touch.1
diff options
context:
space:
mode:
authorjh <jh@FreeBSD.org>2012-02-04 13:37:31 +0000
committerjh <jh@FreeBSD.org>2012-02-04 13:37:31 +0000
commit95784fde4016f782cc1f27cc67d80823d6b67a09 (patch)
treefa623f979d01546c6d63ae8b45b86d976fde5738 /usr.bin/touch/touch.1
parent9dcb44a0cf7752c503bb1de139329297f9c2294e (diff)
downloadFreeBSD-src-95784fde4016f782cc1f27cc67d80823d6b67a09.zip
FreeBSD-src-95784fde4016f782cc1f27cc67d80823d6b67a09.tar.gz
Remove useless and potentially dangerous rw() function which tries to
update access and modification times by reading and writing the file. chmod(2) in rw() doesn't help because utimes(2) allow owner and the super-user to change times. Using just utimes(2) should be sufficient. The -f option becomes no-op. Reviewed by: jilles
Diffstat (limited to 'usr.bin/touch/touch.1')
-rw-r--r--usr.bin/touch/touch.17
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/touch/touch.1 b/usr.bin/touch/touch.1
index 1f3b8c2..c2b0a60 100644
--- a/usr.bin/touch/touch.1
+++ b/usr.bin/touch/touch.1
@@ -31,7 +31,7 @@
.\" @(#)touch.1 8.3 (Berkeley) 4/28/95
.\" $FreeBSD$
.\"
-.Dd April 28, 1995
+.Dd February 4, 2012
.Dt TOUCH 1
.Os
.Sh NAME
@@ -40,7 +40,7 @@
.Sh SYNOPSIS
.Nm
.Op Fl A Ar [-][[hh]mm]SS
-.Op Fl acfhm
+.Op Fl achm
.Op Fl r Ar file
.Op Fl t Ar [[CC]YY]MMDDhhmm[.SS]
.Ar
@@ -109,9 +109,6 @@ The
.Nm
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.
.It Fl h
If the file is a symbolic link, change the times of the link
itself rather than the file that the link points to.
OpenPOWER on IntegriCloud